Follow
Windows

How to Unlock Accounts in Windows 11

Richard
Written by
Richard
Jul 24, 2022 Updated Apr 29, 2026 3 min read
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.

  1. Open the Start menu and type lusrmgr.msc.
  2. Select the result to open the manager.
Windows 11 Local Users and Group Manager interface for unlocking accounts

(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.
Unlocking a locked-out account in Windows 11 settings

How to unlock an account using the Terminal

If you prefer using commands, you can use the Windows Terminal.

  1. Open Windows Terminal as an administrator.
  2. Choose either Windows PowerShell or Command Prompt.
Windows Terminal running as administrator for account management

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

Tags: #Windows 11
Richard

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.

2474 articles → Twitter

📚 Related Tutorials

How to Change Account Lockout Threshold in Windows 11
Windows How to Change Account Lockout Threshold in Windows 11
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11
How to Change Reset Account Lockout Counter After Time in Windows 11
Windows How to Change Reset Account Lockout Counter After Time in Windows 11
How to Enable or Disable Built-in Administrator Account Lockout in Windows 11
Windows How to Enable or Disable Built-in Administrator Account Lockout in Windows 11

Leave a Reply

Your email address will not be published. Required fields are marked *