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

Michael Adams 351 Reputation points
2023-11-07T20:11:34.6+00:00

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.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

Added key NoConnectedUser. Set value = 3. FAIL.

Then I tried adding another Registry entry.

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PolicyManager\default\Settings\AllowYourAccount

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.
9,711 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. André van den Berg 81 Reputation points MVP
    2023-11-20T13:14:06.49+00:00

    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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.