Link to home
Start Free TrialLog in
Avatar of jimbecher
jimbecherFlag for United States of America

asked on

Need batch file to change local administrator password

I have a domain with about 120 XP Professional computers. I am trying to find a batch file using the net command to change the local administrator password on all the computers. Something I can put in the login script.
ASKER CERTIFIED SOLUTION
Avatar of Steven Carnahan
Steven Carnahan
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
Avatar of jimbecher

ASKER

I guess I needed to specify a little further. It is a 2003 AD. I do not see those options in a 2003 AD. I guess you need a 2008 AD?
SOLUTION
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
Okay, you only need a 1 line batch file that has the following:

NET USER Administrator <password>

Again the user name must be Administrator.  This should be included in the Startup script and not the logon script because it needs to run with admin privelges.

CAUTION: The password is plain text this way.  
Thanks guys but Sysinternals came through again with pspasswd.exe :)
Avatar of junior15
junior15

Glad we could help.
Glad to be of assistance.  sysinternals is a great tool to have.  Glad junior15 remembered to mention it.  :)
i have unable to change local admin password because password field is gray out not changeable kindly give me solution
If it is grayed out it means that the account you are using does not have administrator privileges. It needs to be in the local computers Administrator group.