Skip to content

Instantly share code, notes, and snippets.

@jcchikikomori
Created March 2, 2024 17:13
Show Gist options
  • Save jcchikikomori/fcd55c1f43e56cdf8483038c91ca0b7f to your computer and use it in GitHub Desktop.
Save jcchikikomori/fcd55c1f43e56cdf8483038c91ca0b7f to your computer and use it in GitHub Desktop.
Windows 11 Organization BS Cleanup after removing work/school account.
REM https://answers.microsoft.com/en-us/windows/forum/all/windows-11-some-of-these-settings-are-managed-by/d4cb2836-be2d-42c4-889f-6ece8c6de0e5
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKLM\Software\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Policies" /f
reg delete "HKLM\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKCU\Software\Microsoft\WindowsSelfHost" /f
reg delete "HKCU\Software\Policies" /f
reg delete "HKLM\Software\Microsoft\Policies" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment