You can change the Windows Domain User Account Password from the Command Line using the net command. This is applicable to Windows NT line of operating systems – NT 4, Windows 2000, Windows XP Pro, Windows Vista and so on.
To change a domain user’s password at the command prompt, log on as an administrator and type:
1 |
C:\Windows\system32>net user ibrahim * /domain |
Of course, you will need to use your own username, as this is just an example. You will then be prompted to enter the new password twice. The password will be changed once you enter the password the second time.
Alternatively, if you would like to do a update of the password from a batch file, you can use the following command:
1 |
C:\Windows\system32>net user ibrahim password /domain |
The password will be updated immediately without any prompts.
Note: Non-administrators who try to change the password from the command line will receive a “System error 5 has occurred. Access is denied” error message when they attempt to change the password.