Script to Reset Local Administrator Passwords

I realized I hadn't posted this one answering a newsgroup post this morning. The attached script will iterate through a list of workstation names in a text file, ping them, and if the ping returns then reset the local administrator account password to whatever is defined at the top of the script. This is pretty basic and would potentially need some customization. You might want to adapt it to iterate through an OU or set of OUs instead and get the computer names from there, or perhaps set different administrator passwords on the machines.

Feel free to leave any questions/comments/etc in the comments box below and I'll take a look.

UPDATE - Script download link: http://www.briandesmond.com/blog-attachments/changelocaladminpasswords.zip

Posted Saturday, May 05 2007 11:11 AM by Brian Desmond | 3 Comments
Tagged as: ,

Comments, Trackbacks, & Pingbacks

#1 re: Script to Reset Local Administrator Passwords

Tuesday, September 18 2007 8:59 PM by Andrés

What's the Operating System this script is supposed to work at?

Sorry for being such a newbie.

<a href="http://blogaritmo.factorcomun.org">My blog...</a>

#2 re: Script to Reset Local Administrator Passwords

Thursday, May 29 2008 4:24 PM by Dustin

What is the workstation.txt syntax?

#3 re: Script to Reset Local Administrator Passwords

Saturday, November 15 2008 9:46 PM by brian desmond

The workstations.txt syntax is simply one machine name/fqdn per line.

Leave a comment