Monday, November 23, 2015

Disable or Enable a user account using a command line in Server

  1. To open a command prompt, click Start , click Run , type cmd , and then click OK .
    To open a command prompt in Windows Server 2012, click Start , type cmd , and then click OK .
  2. Type the following command, and then press ENTER:
dsmod user <UserDN> -disabled {yes|no}

No comments:

Post a Comment