Home > Resources > Windows 10 > Disable or Block Microsoft Account

How to Disable or Block Microsoft Account in Windows 10/8

Microsoft account is allowed to add or create in Windows 10/8 by default. If you want to limit the use of Microsoft account in your computer, such as disabling Microsoft logon option, you would have to block or disable Microsoft account manually. So that you will not be able to login Windows with Microsoft account, cannot add a Microsoft account, or switch a local account to a Microsoft account, or connect a domain account to a Microsoft account.

Now please follow 2 ways below to block or disable Microsoft account in Windows 10 if you need to make users unable to add or login Windows 10/8 with Microsoft account.

  1. Way 1: Block Microsoft account by editing Group Policy
  2. Way 2: Block Microsoft account through Registry Editor

Way 1: Block Microsoft account by editing Group Policy

Step 1: Open Group Policy Editor.

Type edit group policy in Start menu or taskbar search box and then press Enter key to open Local Group Policy Editor. Or you can also type gpedit.msc in the search or Run command box and then press Enter key to open the Group Policy Editor.

open local group policy editor with command

Step 2: Navigate to following policy location.

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

find option to block Microsoft account in group policy

Tips: Another way to navigate to "Account: Block Microsoft accounts"

1. Press Win + R to open Run dialog, type secpol.msc and click on OK. If prompted by UAC, then click on Yes.
2. In the left pane, tap on to expand Local Policies and open Security Options.
3. In the right pane of Security Options, you can see "Accounts: Block Microsoft accounts".

Step 3: Open properties of "Accounts: Block Microsoft accounts".

On the right-side, locate the entry named "Accounts: Block Microsoft accounts" and then double-click on it to open its properties.

open option block Microsoft account properties

Step 4: Select an option to block or disable Microsoft account.

Under Local Security Setting tab, click on the drop-down box and you can see the following three options:

After selecting the right policy, click Apply and OK. Sign out and restart PC to make the policy effect.

select not to add or log on with Microsoft account

Way 2: Block Microsoft account through Registry Editor

If you cannot block Microsoft account by group policy because of some reasons, please open Registry Editor and you could find Microsoft account would be also blocked or disabled with two tricks.

Trick 1: Change "NoConnectedUser" value

Step 1: Open Registry Editor.

Press Win + R key to open the Run box. Type "regedit" and hit Enter.

open registry editor

Step 2: Navigate to following location in Registry Editor.


navigate to policy location in registry editor

Step 3: Change "NoConnectedUser" value to 1 or 3.

1. In the right pane in Registry Editor, you would see a value named NoConnectedUser.
If the value doesn't exist, right-click on the empty space to create a DWORD value and name it "NoConnectedUser".

create noconnecteduser key and set right value

2. Set the NoConnectedUser value to "1" if you just want to block users from switching to Microsoft account. Or set it to "3" if you want to block users from either adding or logging on with Microsoft account.

0 = Allow Microsoft Accounts
1 = Users can't add Microsoft Accounts
3 = Users can't add or log on with Microsoft accounts

3. Then you can close the Registry Editor window and reboot the PC.

close registry editor after setting noconnecteduser value

Trick 2: Change "AllowYourAccount" value

Here is another trick that you can block users from switching to Microsoft account in Registry Editor. Please follow the steps.

Step 1: Open Registry Editor and navigate to following keys.


navigate to location of allowyouraccount key in registry

Step 2: Change "AllowYourAccount" value to 0.

In the right pane, double-click on the entry "value" and set it to 0.

set allowyouraccount value to disable Microsoft account

Step 3: Restart your PC to make Microsoft account login disabled.

Log off and log in again your Windows 10/8 PC. Open the Settings charm and select Accounts, you'll find the option "Sign in with a Microsoft account instead" is now greyed out and disabled.

successfully block Microsoft account in Windows 10

Tips: The settings to block or disable Microsoft account above will help to prevent a security hole from malicious use by people who has administrative privileges in Windows 10. But while you want to log into Windows 10 with Microsoft account later, you would need to allow Microsoft account manually in Windows 10 again just like you block Microsoft account.

Related Articles:

Hot Categories
Windows 10 Password
Windows 8 Password
Windows 7 Password
More +
Hot Articles
How to Reset Windows 10 Forgotten Password
How to Bypass Windows 10 Password Login with/without Password
Windows 10 Administrator Password Reset/Remove with USB
4 Tips to Change Windows 10 Password without Knowing Current Password
Can't Sign into Microsoft Account Windows 10 | Account Locked/Blocked
More +
Latest Articles
Fix Error: Can't Create Password Reset Disk in Windows 10
2 Ways to Automatically Skip Windows 10 Login Screen
Remove or Delete Administrator Account in Windows 10 without Password
More +
Hot Products
Windows Password Genius
iTunes Password Genius
Product Key Finder
More +
Facebook Twitter LinkedIn