How to change the local admin password on a bunch of machines?

Not a Group Policy-only solution, but a few ways you could do that:

(1) Use a computer startup script to do that. You can use the batch commands: NET USER Administrator

- where the password would be in plaintext. As this is not really secure (posting plaintext passwords is always not a good idea!), you could use a parameter for this: NET USER Administrator %1 - when creating the computer startup script, you could assign the parameter via the textbox:

(2) Use a VB Script for the password changing. The Scripting Guys have something for that: http://www.microsoft.com/technet/scriptcenter/resources/qanda/jul07/hey0703.mspx

(3) Have a look at Sysinternals’ PsPasswd which can remotely change passwords on remote machines. You can use PsPasswd in your scripts: http://www.microsoft.com/technet/sysinternals/utilities/pspasswd.mspx

2 Comments so far

  1. hemant on April 18th, 2009

    reset admin password

  2. rays on September 7th, 2009

    this is fantastic..I just have changed 100++ servers’s admin password in a jiff!!!
    Thank you so much!!!