How to Unlock Accounts in Windows 11
You unlock a locked Windows 11 account by resetting its password through the Advanced startup options. A Windows 11 account locks temporarily if you enter an incorrect password too many times, a security feature designed to thwart brute-force attacks.
This lockout prevents unauthorized access by stopping malicious actors from guessing your credentials. To regain access, you need to boot into the Windows Recovery Environment, a special startup mode.
Once there, you can use the Command Prompt to reset your account password, usually taking just a few minutes to complete once you’re in the right menu.
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
Knowing if you have a Microsoft Account or a Local Account on your Windows 11 PC is key because they work differently and some tools only work with one type.
How to unlock a local account using the Local Users and Groups manager
You can unlock a locked local account in Windows 11 using the Local Users and Groups manager, but 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’re comfortable with commands, you can unlock a Windows 11 account using the Windows Terminal by running a simple command as an administrator.
- 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 for security, but you can unlock a local account using tools like lusrmgr.msc or the Terminal, while Microsoft Accounts require 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!