Accounts Enable or Disable Microsoft Accounts in Windows 11


  • Staff
Microsoft_Account_banner.png

This tutorial will show you how to enable or disable the ability to add and/or sign in to the PC with Microsoft accounts in Windows 10 and Windows 11.

You can set the Accounts: Block Microsoft accounts security policy to:
  • Users can’t add Microsoft accounts = Users will not be able to add new Microsoft accounts on the computer, switch a local account to a Microsoft account, or connect a domain account to a Microsoft account. Users will still be able to sign in to Windows with existing Microsoft accounts.
  • Users can’t add or log on with Microsoft accounts = In addition to the above, users will not be able to sign in to Windows with existing Microsoft accounts. Users will only be able to sign in to Windows with a local account.
References:

You must be signed in as an administrator to enable or disable Microsoft accounts.

Users will still be able to add Microsoft accounts in Accounts used by other apps to sign in to apps and the Microsoft Store with a Microsoft account.




Contents

  • Option One: Enable or Disable Microsoft Accounts in Local Security Policy
  • Option Two: Enable or Disable Microsoft Accounts using REG file




Option One

Enable or Disable Microsoft Accounts in Local Security Policy


Local Security Policy is only available in the Windows 10/11 Pro, Enterprise, and Education editions.

All editions can use Option Two to change the same policy.


1 Open Local Security Policy (secpol.msc).

2 Perform the following actions: (see screenshot below)
  1. Expand open the Local Policies folder in the left pane.
  2. Click/tap on the Security Options subfolder in the left pane.
  3. Double click/tap on the Accounts: Block Microsoft accounts policy in the right pane.
Block_Microsoft_accounts_secpol-1.png

3 In the Local Security Setting tab, select This policy is disabled (default), Users can’t add Microsoft accounts, or Users can't add or log on with Microsoft accounts for what you want, and click/tap on OK. (see screenshot below)

Block_Microsoft_accounts_secpol-2.png

4 You can now close Local Security Policy if you like.




Option Two

Enable or Disable Microsoft Accounts using REG file


1 Do step 2 (enable), step 3 (disable add), step 4 (disable add and sign-in) below for what you want.

2 Enable Microsoft Accounts

This is the default setting.


A) Click/tap on the Download button below to download the file below, and go to step 5 below.​

Enable_Microsoft_accounts.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"NoConnectedUser"=-

3 Disable Add New Microsoft Accounts

A) Click/tap on the Download button below to download the file below, and go to step 5 below.​

Disable_add_new_Microsoft_accounts.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"NoConnectedUser"=dword:00000001

4 Disable Add and Sign-in with Microsoft Accounts

A) Click/tap on the Download button below to download the file below, and go to step 5 below.​

Disable_add_and_sign-in_with_Microsoft_accounts.reg


(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"NoConnectedUser"=dword:00000003

5 Save the .reg file to your desktop.

6 Double click/tap on the downloaded .reg file to merge it.

7 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

8 You can now delete the downloaded .reg file if you like.


That's it,
Shawn Brink


 

Attachments

  • Disable_add_and_sign-in_with_Microsoft_accounts.reg
    626 bytes · Views: 21
  • Disable_add_new_Microsoft_accounts.reg
    630 bytes · Views: 23
  • Enable_Microsoft_accounts.reg
    600 bytes · Views: 24
Last edited:
Option 2 does not work for Windows 11 Pro. The user still has the ability to sign in with a Microsoft account.
 

My Computer

System One

  • OS
    Windows 11 Pro
Option 2 does not work for Windows 11 Pro. The user still has the ability to sign in with a Microsoft account.
Hello, and welcome. :alien:

What are the users still able to sign in to with a Microsoft account?

Using step 4 in option two, they should not still be able to sign in to Windows with existing Microsoft accounts, or add a new account on Windows with a Microsoft account.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
Back
Top Bottom