Unlock active directory account from a command line

command line

First, here is how to find if a user is locked:

net user [username] /domain | find /i "Account Active"

If the result, says: "Account Active" ------- "No", then to unlock the user, run this:

net user [username] /DOMAIN /active:YES

Post a Comment

Previous Post Next Post