Local Group Policy - Reset to Default

How to Reset Local Group Policy to Default in Vista, Windows 7, and Windows 8

   Information
This will show you how to reset all policy objects in the Local Group Policy Editor (gpedit.msc), including any custom GPOs for specific users/groups or all users except administrators, back to default in Vista, Windows 7, and Windows 8.

This will also only reset registry entries for policies that had been changed in the Local Group Policy Editor (gpedit.msc) itself to default, and not those changed using a REG file, manually in Registry Editor, or any other means.

This will not reset local security policies (secpol.msc)

   Note
This could be handy if you lost track of what changes you made in the Local Group Policy Editor, and just wanted to reset it back to default.


   Warning
The Local Group Policy Editor is only available in:
  • Vista Business, Ultimate, and Enterprise editions.
  • Windows 7 Professional, Ultimate, and Enterprise editions.
  • Windows 8 Pro and Enterprise editions.



OPTION ONE

To Reset "Local Group Policy" to Default using a VBS File


NOTE: You must be logged in as an administrator in Windows to be able to do this option.
1. Click/tap on the Download button below to download the VBScript file below, then run it.
Reset_Local_Group_Policy.vbs


Download


2. If prompted, click/tap on Open.
NOTE: If you like, you can stop getting the Run prompt by unblocking the downloaded .vbs file.

3. If prompted by UAC, then click/tap on Yes (Windows 7/8) or Continue (Vista).

4. The Local Group Policy Editor has now been reset back to default.



OPTION TWO

To Reset "Local Group Policy" to Default using a BAT File


NOTE: You must be logged in as an administrator in Windows to be able to do this option.
1. Click/tap on the Download button below to download the batch file below.
Reset_Local_Group_Policy.bat


Download


2. Right click on the downloaded .bat file, and click/tap on Run as administrator.

3. If prompted, click/tap on Run.
NOTE: If you like, you can stop getting the Run prompt by unblocking the downloaded .bat file.

4. If prompted by UAC, then click/tap on Yes (Windows 7/8) or Continue (Vista).

5. The Local Group Policy Editor has now been reset back to default.



OPTION THREE

To Reset "Local Group Policy" to Default in a Command Prompt at Boot


1. Open a command prompt at boot in Vista or Windows 7 or Windows 8.
NOTE: See OPTION ONE at this link for how if needed.

2. In the command prompt, type diskpart, and press Enter. (see screenshot below step 7)

3. In the command prompt, type list volume, and press Enter. (see screenshot below step 7)

4. Make note of what your Windows OS drive letter is. It is not always C: at boot. (see screenshot below step 7)
NOTE: Mine just happens to be D: at boot.

5. In the command prompt, type exit, and press Enter. (see screenshot below step 7)

6. In the command prompt, type the command below, and press Enter. (see screenshot below step 7)
NOTE: Substitute D in the command below with your drive letter from step 4 instead.
RD /S /Q "D:\Windows\System32\GroupPolicy"
7. In the command prompt, type the command below, and press Enter. (see screenshot below)
NOTE: Substitute D in the command below with your drive letter from step 4 instead.
RD /S /Q "D:\Windows\System32\GroupPolicyUsers"

CMD-BOOT.jpg
8. Restart the computer back into Windows.

9. The Local Group Policy Editor has now been reset back to default.
That's it,
Shawn





 

Attachments

Last edited:
very educational thanks my corduroy.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
custom build
OS
Windows 7 Ultimate x64
CPU
intel core i7 2600
Motherboard
abit
Memory
32gb
Graphics Card(s)
3 sli x16
Hard Drives
12 hdd
Antivirus
norton
Browser
internet explorer
Thank you for your post!
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Azure Blade 15.6
OS
Windows 10 Pro Version 22H2 64-bit Edition
CPU
Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz 2.30 GHz
Memory
2.0 GB (31.8 GB usable)
Monitor(s) Displays
4K UHD OLED TOUCH
Screen Resolution
3840 x 2160
Hard Drives
1 TB
Mouse
Logitech MX Master 3S
Antivirus
Windows Security
Browser
Google Chrome
Other Info
______________________________________________


______________________________________________
:thumbsup:
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
I'm going to post a caveat, maybe just rename the folders instead of deleting them. Or Move Them. The effect is the same, but if for some reason it farks up you system when you do this (which it really shouldn't), or it doesn't fix it, at least you can put them back. Copy over the existing files and folders with the copied/renamed items.

You could also launch gpedit.msc and change the admin approval modes as well to be less restrictive. IF this is fixing it, and you delete the local policies, any fixes that security patches have put in place might be removed if they are dependent on the group policy settings.

But yeah, this will force local policy to be vanilla, and works for most of these situations.
 

My Computer My Computer

Computer Manufacturer/Model Number
Home Built
OS
Windows 7 Custom x64
CPU
Intel 9550
Motherboard
Gigabyte
Memory
16 GB
Graphics Card(s)
Dual SLI ATi
Sound Card
OnBoard
Monitor(s) Displays
4 x 24inch Samsungs
Hard Drives
8 1tb Sata WD 10k rpm
PSU
1250 WATT
Case
ThermalTake
Cooling
Liquid
Back
Top