Skip to content

Instantly share code, notes, and snippets.

@jcalvopinam
Created September 4, 2020 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcalvopinam/0e34e346fabe84981759b1169cb284c1 to your computer and use it in GitHub Desktop.
Save jcalvopinam/0e34e346fabe84981759b1169cb284c1 to your computer and use it in GitHub Desktop.
Remove Local Group Policies
@echo off
rem This script remove the local group policies
rem Tested on Windows 10
RD /S /Q "%WinDir%\System32\GroupPolicy"
RD /S /Q "%WinDir%\System32\GroupPolicyUsers"
reg delete "HKCU\Software\Policies\Microsoft" /f
reg delete "HKLM\Software\Policies\Microsoft" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects" /f
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies" /f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment