Skip to content

Instantly share code, notes, and snippets.

@CraftedRO
Created April 12, 2024 15:46
Show Gist options
  • Save CraftedRO/0aaccbecd5520b3467db52a6a380500b to your computer and use it in GitHub Desktop.
Save CraftedRO/0aaccbecd5520b3467db52a6a380500b to your computer and use it in GitHub Desktop.
Scripts
How to Reset All Group Policy Settings
Open PowerShell or the Command Prompt as Administrator.
Type in the following three lines, pressing Enter after each:
RD /S /Q "%WinDir%System32GroupPolicyUsers"
RD /S /Q "%WinDir%System32GroupPolicy"
gpupdate /force
The first two lines remove all of the changed Group Policy settings. The final line tells Windows to re-load Group Policy.
Reboot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment