/build/static/layout/Breadcrumb_cap_w.png

How to change the Administrator Account Password in all the desktops (Windows 7) using a script.

I have used the Pspasswd tool, which is part of the Sysinternals PsTools download, to reset the local administrator password across one or more machines locally or remotely.

The tool must be run while logged on with an account that has administrative rights on the target computer, for example a domain admin account. You can also specify those credentials via the command-line. Pspasswd uses Windows authentication methods to authenticate to remote systems and does not put passwords in clear text over the network.

For a single computer:

pspasswd \\computer_name Local_administrator_account_name “New_Password”

For multiple computers:

pspasswd \\computer1_name,computer2_name,computer3_name Local_administrator_account_name “New_Password”

For all computers in the environment:

pspasswd \\* Local_administrator_account_name “New_Password”

For multiple computers using a text file containing the computer names:

 

pspasswd \\@file.txt Local_administrator_account_name “New_Password”

Can this be done from kace 1000 as well?



0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: SMal.tmcc 10 years ago
Red Belt
1

you can do this with a kscript and use the net user command or you can upload the pspasswd file as a dependancy and call from the kace directory.  Then just add the label or machines you want to target to the deployment list

 

 

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ