Reset password with Login script for the Administrator

Posted on 2007-10-16
Last Modified: 2010-04-16

I want a script that can be used as a logon script to reset all the local machines password in the whole domain.

Question by:bsharath
    LVL 26

    Expert Comment

    NET USER Administrator NewPasswordHere
    EXIT /B /0
    LVL 11

    Author Comment

    farhan is this for the local machine password....Any way to get a rport out of this pleae...Then i can find which have been changed and which are left...
    LVL 26

    Accepted Solution

    ECHO %COMPUTERNAME% >>\\SERVER\SHARE\PwdChangeStatus.txt
    NET USER Administrator NewPasswordHere >>\\SERVER\SHARE\PwdChangeStatus.txt
    ECHO. >>\\SERVER\SHARE\PwdChangeStatus.txt
    EXIT /B /0

    ::Note:  \\SERVER\SHARE   <-- this share folder must have Full Access to Everyone

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now