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
Tuesday, March 1, 2011
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment