How to Unlock Accounts in Windows 11
You unlock a locked Windows 11 account by resetting the password via the Advanced startup options.
When Windows 11 detects too many incorrect password attempts, it temporarily locks the user account as a security measure to prevent brute-force attacks.
This lockout prevents unauthorized access to your PC by stopping malicious actors from guessing your password.
To regain access, you will need to boot into the Windows Recovery Environment and use the Command Prompt to reset your account password.
This process typically takes just a few minutes once you reach the correct menu in the Advanced startup options.
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?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!