Reset local administrator password for bulk machines,

Posted on 2009-02-11
Last Modified: 2012-05-06
How can I reset local administrator password for a bulk group of machines? (>700), I read some methods but am not sure if they are up to date? we have native windows 2003 (no Windows 2008or vista).

Thanks for any help,
Question by:romari
    LVL 5

    Accepted Solution

    using start up script in Group policy>
    write a batch file >>>>net user administrator (password)

    LVL 5

    Expert Comment

    you may use windows resource kit tool cusrmgrto run this script :
    -create folder and copy cusrmgr to this folder.
    -create in this folder file name it " change.bat"
    -computer list should be placed in a file call it " names.txt"
    replace 12345678 in the script with your password

    Set objFSO = CreateObject("Scripting.FileSystemObject")
    Set objoutputFile = objFSO.OpenTextFile ("change.bat", 2)
    Set objinputFile = objFSO.OpenTextFile ("names.txt", 1)

    Do Until objinputFile.AtEndOfStream
        strComputer = objinputFile.Readline
    objoutputfile.writeline ("cusrmgr  -u   Administrator -m \\"&strComputer&" -P 12345678 ")
    Set objShell = CreateObject("Wscript.Shell")
    objShell.Run _
        ("%comspec% /K title Change PWD |change.bat"), _
            1, TRUE
    LVL 32

    Expert Comment

    You can also us the net dom command and create a batch file like this:
    1. create a text file containing all of the computers you want to perform the task on remotely
    2. use the following command below to rename the computers
    3. For a full explanation of the netdom command, go here
    ÿÿÿÿFOR /F %1 IN (userlist.txt) do "netdom userd:domainname\administrator_id  /passwordd:* /usero:local_admin*

    Open in new window

    LVL 1

    Expert Comment

    Hi romari,

    by doing that batch script which contains "net user administrator (p455w0rd)"
    is it actually applied to the Computers domain or do you have to create custom OU and create GPO and make it as Startup script applied to the computer ?

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Hallo! I guess almost every Windows Administrator must have got stumped with this question "Where does WINDOWS store a users cached credentials? Every user who had once logged onto a Server/Desktop while it was connected to the domain could sti…
    Introduction: I have always been a big fan of Windows but my liking towards it is slowly being eroded by the variety of other Applications that I encounter, when I browse the Web. Most of the software available is free and maybe Open Source too. …
    This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
    Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…

    730 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

    15 Experts available now in Live!

    Get 1:1 Help Now