Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: Windows XP .: How can I change my user-account password from a Command Prompt

How can I change my user-account password from a Command Prompt

You can change a Windows User Account password that is on any Windows computer from any other Windows computer regardless of whether the User Account is on a workstation, a stand-alone server, or a Windows domain controller. Additionally, it makes no difference whether the password being changed from a workstation, a stand-alone server, or a Windows domain controller. This is true for any NT 4.0, W2K, XP Pro and Windows Server 2003 computer.

To change a user's password at the command prompt, log on as an administrator and type:

(This is only an example, use your own username)

When you are prompted to type a password for the user, type the new password, not the existing password. After you type the new password, the system prompts you to retype the password to confirm. The password is now changed.

Alternatively, you can type the following command:

When you do so, the password changes without prompting you again. This command also enables you to change passwords in a batch file.

Note: If you type these commands on a member server or workstation and you don't add the /domain switch, the command will be performed on the local SAM and NOT on the DC SAM.

For example, to change the administrator's password type:

Note: Non-administrators receive a "System error 5 has occurred. Access is denied" error message when they attempt to change the password.


How helpful was this article to you?

Related Articles

article How can I change my user-account password from a remote computer?
You can change a Windows User Account...

(No rating)  3-11-2008    Views: 161   
article How to Change the Cluster Service Account Password
SUMMARY In Windows Clustering for...

(No rating)  6-4-2008    Views: 111   
article How to Move a user account into a domain or edit an NT username using MOVEUSER.exe command (Resourse Kit)
MOVEUSER.exe (Resource Kit) Move a user...

(No rating)  3-9-2008    Views: 146   

User Comments

Add Comment
No comments have been posted.