The Clean Registry Policy utility is a command-line tool for listing and removing registry policies, preferences and Software Restriction Policies. You can list each type of registry policy from the tool and then optionally remove each type (or all types). This tool is unique in that normally there is no easy way to remove preferences–those Administrative Template policies that fall outside of the four special policy keys that Microsoft provides. Preferences tattoo the registry until they are explicitly removed or disabled. This utility lets you remove all preferences that were previously set on a machine. In addition, this utility can help you clean a system that has been removed from a domain and still has “orphaned” registry policy entries that are causing problems. You can view all of the command-line switches available on the tool by typing cleanregpol /?.
Requirements: This utility requires .Net 2.0 to be installed on each system where it runs. In addition the user running the tool must be a member of the local administrators group on the machine where it runs. Note that the tool can be run in Task Scheduler as well.