Skip to content

Instantly share code, notes, and snippets.

@ilovefreesw
Created March 24, 2022 07:17
Show Gist options
  • Save ilovefreesw/86852bf0b2835d5956d2a9b7b9f784a3 to your computer and use it in GitHub Desktop.
Save ilovefreesw/86852bf0b2835d5956d2a9b7b9f784a3 to your computer and use it in GitHub Desktop.
A batch script for Windows to Fix "Some settings are managed by your organization". Works on Windows 10 and Windows 11.
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
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies" /f
reg delete "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /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\WOW6432Node\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate" /f
Copy link

ghost commented Jan 6, 2025

Thanks dude.

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