[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