This article was previously published under Q272530
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.exetool is compatible with Windows NT 4.0 and Windows 2000. This article providesexamples of how you can use the Cusrmgr.exe tool.
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:
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.