Tuesday, March 1, 2011

Is someone's account locked?

With the native NET command:

NET USER loginname/DOMAIN | FIND /I "Account active"

The account is either locked ("Locked") or active ("Yes").

With the native NET command:

NET USER loginname /DOMAIN /ACTIVE:YES

or, if the password needs to be reset as well:

NET USER loginname newpassword /DOMAIN /ACTIVE:YES

No comments:

Post a Comment