Reset Windows Local Administrator account password via GPO

#1. Create a script with the following net user command

net user “Administrator” %1

The %1 allows you to pass a parameter to the script (ie the password) so you don’t store it in a file on the server.

#2 Create a GPO and add the following script to the start up script in the computer section.  You can disable the User configuration if that is all you are doing.  When adding the startup script, make sure to enter the new password as the parameter to the script.

#3 Create an OU and apply the GPO and any others needed to the OU.

#4. Add a test computer to the new OU and reboot the test computer.

#5 Test that you can login with the new password.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s