The referenced account is currently locked out and may not be logged on to

Case



When trying to login to a Windows account, either a local or domain Windows Server account, you incorrectly provide the password multiple times and eventually the account gets locked. You receive the following message.



The referenced account is currently locked out and may not be logged on to.



This article provides an easy way to unlock the user account and thus allow you to login without issues.



Solution



Navigate to the Active Directory server or any management server which has the Remote Server Administration Tools (RSAT) installed and the Powershell Active Directory module imported. If the Powershell Active Directory module is not imported, import it by running the below command.



import-module ActiveDirectory

Run the following command in an elevated Powershell terminal.



Get-AdUser -properties sAMAccountName,Enabled,LockedOut



If the user is locked out you should see the relevant property set to True. Now execute the following command.



Unlock-ADAccount





Your user "lockedout" property should now be unlocked and ready to be used for logon.



An alternative method would be to make use of the Active Directory Users and Computers MMC snapin (dsa.msc) or the Windows Admin Center interface to issue a command to unlock the Active Directory user account object. This can also be done when resetting a user's account password from the DSA.MSC console.


https://stefanos.cloud/kb/the-referenced-account-is-currently-locked-out-and-may-not-be-logged-on-to/

Comments

Popular posts from this blog

Acronis Cyber Protect 15 virtual machine backup not working when using shared mode virtual disks vhds

How to perform hardware health checks in Windows

How to resolve Group Policy error codes 8007071a and 800706ba