jimbecher
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
ASKER
Thanks guys but Sysinternals came through again with pspasswd.exe :)
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.
ASKER