Skip to content
Follow
Windows

How to Unlock Accounts in Windows 11

Richard
Written by
Richard
Jul 24, 2022 Updated Aug 13, 2026 2 min read
How to Use Sticky Notes in Windows 11
How to Use Sticky Notes in Windows 11

Locking a Windows 11 account happens automatically after 5 incorrect password tries to stop strangers from guessing your login. Windows triggers this safety block to protect your files, but it leaves you locked out if you forget your own details.

Fixing this lockout takes a trip into the Windows Recovery Environment, which is a hidden repair screen on your PC. You use the Command Prompt tool inside this screen to clear the block and get back into your desktop.

⚡ Quick Answer

Unlock a locked local Windows 11 account by opening lusrmgr.msc, double-clicking the account, unchecking “Account is locked out,” and clicking OK. Alternatively, open Windows Terminal as an administrator and use the command net user “username” /active:yes.

Microsoft Account vs. Local Account

Determining whether your Windows 11 PC uses a Microsoft Account or a Local Account matters. These work differently, and some tools are only compatible with one type.

How to unlock a local account using the Local Users and Groups manager

Windows 11 Pro, Enterprise, and Education users can unlock a local account using the Local Users and Groups manager, a tool that lets you manage accounts on your PC. Press the Win, type lusrmgr.msc into the search bar, and select the top result.

  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
windows 11 local users and group 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.
Unlocking a locked-out account in Windows 11 settings
windows 11 unlock lock out account

How to unlock an account using the Terminal

Command-line tools offer another way to unlock a Windows 11 account for anyone comfortable using the console. Open Windows Terminal as an administrator, choose PowerShell or Command Prompt, and type the command net user "genericuser" /active:yes, making sure to replace “genericuser” with the actual account name you need to unlock.

  1. Open Windows Terminal as an administrator.
Windows Terminal running as administrator for account management
windows terminal run as administrator

(Admin privileges required)

Type the following command and press Enter:

net user "genericuser" /active:yes

Remember 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 as a security measure. Local accounts can be unlocked with tools like lusrmgr.msc or the Terminal. Microsoft Accounts, however, require using their recovery form.

Why is my Microsoft account temporarily suspended?

Your Microsoft account might face temporary suspension in Windows 11 if Microsoft detects unusual sign-in activity or a violation of their terms, acting as a security measure to protect your data.

What should I do if I don't receive a security code?

Missing security codes for a Windows 11 account call for checking the spam or junk folder first, verifying contact details, and requesting the code again or through a different method.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
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.

📚 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 Windows 11 Password via Command Prompt
Windows How to Change Windows 11 Password via Command Prompt
How to Change Account Lockout Duration in Windows 11
Windows How to Change Account Lockout Duration in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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