Skip navigation

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

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 <user's distinguished name (DN)> -pwd <user's new password>

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
TAGS: Security
Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish