Change local admin passwords remotely. Quick, Simple, Effective!

This uses the pspasswd tool from Microsoft. Go to http://technet.microsoft.com/en-us/sysinternals and then download and copy it to your c:\windows\system32\ directory.

Then create two files “Machinelist.txt” and a batch file with the code below. Populate the “Machinelist.txt” with PC names you wish to change the local admin passwords on; one PC per line. Then edit the batch file with the correct credentials and the new password information. Make sure the machines are online and then run the script. You need to use an account with domain administrator rights for the –u and –p parameters in order for this to run correctly.

Quick, Simple, Effective!

Code:

pspasswd.exe @machinelist.txt -u domain\administrator -p domainpassword administrator newpassword
echo “Complete”
pause