How can I change a domain user's password from the command line in Windows Server 2003?

John Savill

October 6, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A. You can use the Dsmod command to modify directory service objects' attributes from the command line. More specific to your question, you can use "Dsmod user" to change the attributes of a user object. To modify a user's password, use the following syntax:

dsmod user  -pwd 

For example, to change the password for user John in domain it.uk.savilltech.com, I typed

dsmod user CN=John,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com –pwd   Pa55word

The system returned

dsmon succeeded:CN=John,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com

About the Author

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like