I'm trying to see if a user account has been locked out, using the command line.
I thought that I could do this with the net command, but when I run the command
NET USER username /domainit processes the request on my domain controller; whereas the user that I want to check is on a different domain. I cannot find a command/option to use the right domain (controller).
How do I check a user account on different domain to see whether it has been locked out?
42 Answers
If you have access to another account on the domain you want to query against, run the command as that account. Here are some ways to do this:
- Use remote desktop to get to a computer in the domain
- Use the Windows
runascommand-line command in front of yournet usercommand - Shift + right-click
Command Promptand selectRun as different user
If your not required to use command prompt can run a report on all domain controllers and allow you to unlock each via GUI.