Link to home
Start Free TrialLog in
Avatar of romari
romari

asked on

Reset local administrator password for bulk machines,

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,
ASKER CERTIFIED SOLUTION
Avatar of Bassam Almasri
Bassam Almasri
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ")
Loop
Set objShell = CreateObject("Wscript.Shell")
objShell.Run _
    ("%comspec% /K title Change PWD |change.bat"), _
        1, TRUE
----------------------------------
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 http://support.microsoft.com/kb/298593
ÿÿÿÿFOR /F %1 IN (userlist.txt) do "netdom userd:domainname\administrator_id  /passwordd:* /usero:local_admin*

Open in new window

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 ?