Skip to content

Instantly share code, notes, and snippets.

@minanagehsalalma
Created August 15, 2025 19:28
Show Gist options
  • Select an option

  • Save minanagehsalalma/6a23641b0ddd1d281839132b667c998d to your computer and use it in GitHub Desktop.

Select an option

Save minanagehsalalma/6a23641b0ddd1d281839132b667c998d to your computer and use it in GitHub Desktop.
Set Your Windows Account To local; unlink Microsoft account.
@minanagehsalalma
Copy link
Author

If you ever want to allow linking again, set:

Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' -Name NoConnectedUser -Value 0

NoConnectedUser = 1 → block adding/linking MS accounts to this device (keeps apps quieter).
NoConnectedUser = 3 → also block signing in with Microsoft accounts entirely (stricter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment