Check Active Directory account from the Command Line

Check Active Directory account from the Command Line

C:\Users\administrator.SERVER>net user /domain <actual username> | find "Account active"

Which will return one of the following results:

Unlocked: Account active               Yes
Locked:     Account active               Locked