Skip to content

Instantly share code, notes, and snippets.

@ilovefreesw
Created March 24, 2022 07:17
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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
@kztera
Copy link

kztera commented Jul 26, 2023

This's help me a lots. Thanks

@ilovefreesw
Copy link
Author

You're welcome....

@Ahmed-Youssef45
Copy link

it says access denied how can i fix it please

@ilovefreesw
Copy link
Author

Run as administrator. Right click on the .bat file and choose Run as administrator. Or, you can copy paste this command in Windows terminal as well. Press Win + X and choose Terminal (Admin) option.

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