Skip to content

Block Microsoft Account creation in Windows 10

Having a connected Microsoft account can come in handy sometimes, but far from all the time, so getting rid of the questions and have the option not to click no or cancel whenever the question comes up, which is far too often most of the times.

Then it’s good to have the option to actually disable it in the registry and get a break from it all.

This script sets the NoConnectedUser registry entry to 3 which disables the online account creation option.

This should work on most versions of Windows 10, have only tested it on Windows 10 Pro and have not got the question for a while now.

To see the status of the registry key.

Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "NoConnectedUser"

Options for the registry value is 0, 1 or 3.

Value Description
0 Allow Microsoft accounts
1 Users can’t add Microsoft accounts
3 Users can’t add or log on with Microsoft accounts

To set the registry, be sure to have a local account first, or you risk locking yourself out from Windows.

New-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "NoConnectedUser" -PropertyType DWORD -Value "3"