How do I enable or disable a domain user from the command line in Windows Server 2003?

John Savill

October 7, 2003

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

A. You can use the "Dsmod user" command with the -disabled switch to enable a user account

dsmod user  -disabled no

or disable a user account

dsmod user  -disabled yes

For example, to enable user John in domain it.uk.savilltech.com, I typed

dsmod user CN=John,CN=Users,DC=it,DC=uk,DC=savilltech,DC=com –disabled   no

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