How to Enable or Disable Microsoft Accounts on Windows 11
You can enable or disable Microsoft accounts on Windows 11 by making changes in the Registry Editor or Local Group Policy Editor.
This allows you to prevent users from signing into your Windows 11 PC with a Microsoft account, forcing them to use a local account instead.
This capability is particularly useful for administrators or users who prefer the privacy and control offered by local accounts, especially on versions like Windows 11 Pro or Enterprise.
You’ll learn exactly which registry keys or policy settings to modify to achieve this.
Control Microsoft account access on Windows 11 via the Local Security Policy Editor or Registry Editor. Open secpol.msc or regedit, navigate to the relevant policy or registry key, and modify the “Accounts: Block Microsoft accounts” setting or the NoConnectedUser value.
What is a Microsoft Account?
A Microsoft account is your digital key to Windows and other Microsoft services like OneDrive and Xbox.
Why would you want to block Microsoft accounts? On shared computers or work computers, you might want to stop people from adding new Microsoft accounts. Windows 11 gives you tools to do this.
You have two main ways to control Microsoft accounts:
- Local Security Policy Editor (easier method for managing your PC)
- Windows Registry Editor (advanced method for power users)
How to Enable or Disable Microsoft Accounts Using Local Security Policy
You can easily turn Microsoft accounts on or off for your PC using the Local Security Policy editor.
Steps:
- Press
Windows + Ron your keyboard. The Run box opens. - Type
secpol.mscand press Enter. The Local Security Policy editor opens. - In the left panel, click Local Policies > Security Options.
- Find and double-click “Accounts: Block Microsoft accounts”.
- Choose one of these options:
- Disabled: Microsoft accounts work normally.
- Users can’t add Microsoft accounts: People cannot add new Microsoft accounts.
- Users can’t add or log on with Microsoft accounts: No one can use Microsoft accounts on this PC.
- Click OK to save your choice.

How to Allow or Block Microsoft Accounts Using the Registry Editor
For more control, you can manage Microsoft account access by changing settings in the Registry Editor.
Steps:
- Press
Windows + R, typeregedit, and press Enter. The Registry Editor opens. - [ADMIN REQUIRED] Navigate to this location:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System - Look for a value named NoConnectedUser in the right pane.
- If it is not there, right-click on a blank area. Choose New > DWORD (32-bit) Value. Name it NoConnectedUser.
- Double-click NoConnectedUser and set the value data to:
- 1 – Block adding new Microsoft accounts.
- 3 – Block adding and signing in with Microsoft accounts.
- To allow Microsoft accounts again, delete the NoConnectedUser entry.
- Click OK and close the Registry Editor.

Important: Editing the Registry can cause problems if done wrong. Please back up your PC before making any changes. Follow this guide if you want to learn how to safely back up your registry: How to Open the Registry in Windows 11.
Summary
Microsoft accounts connect you to Windows 11 services, and you can choose to allow or block them using simple tools.Can you bypass a Microsoft account on 🪟 Windows 11?
Yes, you can set up Windows 11 using a local account instead of a Microsoft account during installation.
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!