Created
September 4, 2020 20:54
-
-
Save jcalvopinam/0e34e346fabe84981759b1169cb284c1 to your computer and use it in GitHub Desktop.
Remove Local Group Policies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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