How to Reset Local Group Policy Objects to default settings

Sometimes viruses or people use  Group Policy against us and we need to reset it back to the default. It can control access to a number of things in windows from logon scripts to access to the screensaver settings. Resetting it is actually pretty simple, which is why you shouldn’t rely on it solely to guard your network.

 

Group Policy

1. If you need to clear IPSec settings and software restriction settings do these two sub-steps, otherwise go on to the second step:
a. reg delete hklm\software\policies\microsoft /f
b. regedit /s “c:\policies.reg” (where c:\policies.reg is the exported hklm\software\policies\microsoft hive of a virgin or target configured machine)
2. Issue this magical command to reset the rest of the GPO settings to their defaults (enter this all on one line):
secedit /configure /db reset /cfg “c:\windows\security\templates\setup security.inf” /overwrite
3. Delete the registry.pol file if it exists:
del c:\windows\system32\grouppolicy\machine\registry.pol

Don’t forget to reboot! All the group policies should now be reset to default. Works with XP, 2000, 2003 and 2008.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s