How to Unlock Accounts in Windows 11
Have you ever been locked out of your Windows 11 computer? This happens when someone enters the wrong password too many times. Windows does this to stop hackers from guessing your password.
Why does this happen?
Windows 11 uses a security feature to protect your data. If there are too many failed login attempts, the system locks the account. This prevents unauthorized people from breaking into your PC.
What happens when done?
Once you follow these steps, the account is unlocked. You will be able to log in with your correct password again immediately.
Microsoft Account vs. Local Account
It is important to know what kind of account you have. A Local Account lives only on your PC. A Microsoft Account is connected to the internet and uses your email address. Note: You cannot use the Local Users and Groups manager to unlock a Microsoft Account. If your Microsoft Account is suspended, you must use the official Microsoft Account Recovery form to verify your identity.
How to unlock a local account using the Local Users and Groups manager
Note: This tool is only available on Pro, Enterprise, and Education versions of Windows.
- Open the Start menu and type
lusrmgr.msc. - Select the result to open the manager.

(Admin privileges required)
- Click on the Users folder on the left.
- Find the name of the locked account in the list.
- Double-click the account name to open its properties.
- Uncheck the box that says Account is locked out.
- Click OK and close the window.

How to unlock an account using the Terminal
If you prefer using commands, you can use the Windows Terminal.
- Open Windows Terminal as an administrator.
- Choose either Windows PowerShell or Command Prompt.

(Admin privileges required)
Type the following command and press Enter:
net user "genericuser" /active:yes
Make sure to replace “genericuser” with the actual name of the account you are trying to unlock.
Summary
Windows 11 locks accounts after 10 failed login attempts to keep your computer safe. You can wait for the lockout timer to expire, or you can manually unlock a local account using the lusrmgr.msc tool or the Terminal. For Microsoft Accounts, you must use the official recovery form to handle sign-in errors or password resets. Always keep your recovery information updated to avoid permanent lockouts.
Why is my Microsoft account temporarily suspended?
Microsoft may temporarily suspend your account if they notice unusual sign-in activity or a violation of their terms. This is a security measure to protect your data. You can resolve this by following the prompts on the Microsoft sign-in page to verify your identity using a security code or 2FA.
What should I do if I don’t receive a security code?
If you do not receive a security code, check your spam or junk folder first. Ensure your phone number or recovery email is typed correctly. If the issue persists, try requesting the code via a different method, such as a phone call instead of a text message, or wait a few hours before trying again.
Was this guide helpful?
Leave a Reply