How to Unlock Accounts in Windows 11
Unlocking a locked Windows 11 account lets you regain access after too many failed login attempts.
Windows 11 locks your account temporarily to prevent unauthorized people from guessing your password, a security measure against brute-force attacks. This lockout can happen after just 5 incorrect tries.
You need to use the Advanced startup options to reset your password. This special startup mode lets you access tools that are normally hidden.
Once in the Windows Recovery Environment, you can open a Command Prompt. From there, you can easily reset your forgotten password and get back into your account.
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
It’s important to know if your Windows 11 PC uses a Microsoft Account or a Local Account. 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. To open it, type lusrmgr.msc in the Start menu search bar and select the result.
- 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
Unlocking a Windows 11 account is possible using commands within the Terminal, if you’re comfortable with that. 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.
- 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
Remember to replace “genericuser” with the actual name of the account you’re 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 be temporarily suspended in Windows 11 if Microsoft detects unusual sign-in activity or a violation of their terms, as a security measure to protect your data.
What should I do if I don’t receive a security code?
If you don’t receive a security code for your Windows 11 account, first check your spam or junk folder, ensure your contact details are correct, and try requesting the code again or via a different method.
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!