How to Block Users from Logging Into Windows with Microsoft Account?

Michael Adams 291 Reputation points

I have users who "accidently" sign into Microsoft accounts, sometimes not even their account, with Windows 11. Then everything gets messed up.

How do I block them from doing this?

I tried this Group Policy setting.

Computer Configuration > Windows Settings > Security Settings > Local Polices > Security Options

I set Accounts: Block Microsoft accounts to Users can’t add or log on with Microsoft accounts.

Yet, I go into Settings, Account, and there is the Microsoft sign in. FAIL.

then I tried the Registry Editor.


Added key NoConnectedUser. Set value = 3. FAIL.

Then I tried adding another Registry entry.


Changed the key Value from 1 to 0. FAIL.

I am out of ideas. Please help.

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,810 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. André van den Berg 81 Reputation points MVP

    You can also use the Registry Editor to block the Microsoft account sign-in option for all users. To do this, follow these steps<sup>1</sup>:

    Press Windows Key + R, type “regedit” in the Run box and enter to open the Registry Editor.

    Navigate to : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

    Right-click on the System key and select New > DWORD (32-bit) Value

    Name the new value “NoConnectedUser”

    Double-click on the NoConnectedUser value and set its data to 1

    Click OK