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
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