How to Use the Cusrmgr.exe Tool to Change Administrator Account Password on Multiple Computers

Article translations Article translations
Article ID: 272530 - View products that this article applies to.
This article was previously published under Q272530
Expand all | Collapse all

On This Page

SUMMARY

You can use the Cusrmgr.exe tool that is included with the Microsoft Windows 2000 Resource Kit to remotely change the account properties of a user in a Windows NT 4.0 or Windows 2000 domain, including the password. You can also use this tool in a batch (.bat) file to process account changes on multiple servers or workstations. Note that the Cusrmgr.exe tool is compatible with Windows NT 4.0 and Windows 2000. This article provides examples of how you can use the Cusrmgr.exe tool.

MORE INFORMATION

How to Change the Local Administrator Password on Several Workstations

NOTE: In the following example, the .bat file is named Example1.bat.

The following .bat file will change the local administrator password to newpass on the \\pc1, \\pc2, and \\pc3 computers:
cusrmgr.exe -u Administrator -m \\pc1 -P newpass
cusrmgr.exe -u Administrator -m \\pc2 -P newpass
cusrmgr.exe -u Administrator -m \\pc3 -P newpass
To run this .bat file successfully, the user must have administrative privileges on \\pc1, \\pc2, and \\pc3. Also, note that you must use a capital P for the -P switch, because a lowercase p sets the account password to a random string.

How to Rename the Local Administrator Account and Change the Password

NOTE: In the following example, the .bat file is named Example2.bat.

The following .bat file will rename the local administrator account on \\pc1 to pc1admin and change the password to a random string.
cusrmgr.exe -u Administrator -m \\pc1 -r pc1admin -p
To run this .bat file successfully, the user must have administrative privileges on \\pc1. The .bat file will rename the user account, and then change its password.

For more information about the Cusrmgr.exe tool, including command syntax and further examples, view the Windows 2000 Resource Kit Tools Help file.

Properties

Article ID: 272530 - Last Review: October 31, 2006 - Revision: 2.1
APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
  • Microsoft Windows NT Server 4.0 Standard Edition
Keywords: 
kbhowto KB272530

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com