Published: May 25, 2011
Updated: April 17, 2012
Applies To: Windows Server 2008 R2
Sets the password for the local computer. For examples of how this command can be used, see Examples.
ksetup /setcomputerpassword <Password>
Uses the supplied password to set the computer account on the local computer.
The password can only be set by using an account with administrative privileges. The password can be from 1 to 156 alphanumeric or special characters.
This command affects the computer account only.
You must restart the computer for the password change to take effect.
The computer account password is not displayed in the registry or as output from the ksetup command.
Change the computer account password on the local computer from IPops897 to IPop$897!.
ksetup /setcomputerpassword IPop$897!