Check Active Directory account from the Command Line

[geshi lang=”dos” nums=”0″ target=”_self” ]

C:\Users\administrator.SERVER>net user /domain <actual username> | find “Account active”
[/geshi]

Which will return one of the following results:

Unlocked: Account active               Yes
Locked:     Account active               Locked

Leave a Reply

Your email address will not be published.