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.
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:
Don’t forget to reboot! All the group policies should now be reset to default. Works with XP, 2000, 2003 and 2008.