Software RemUReg is a small utility for selectively removing registry keys from the HKEY_CURRENT_USER hive. I wrote it so that I could perform registry "cleanup" type operations as part of login scripts (e.g. removing obsolete printer profiles). Although this task can be accomplished by running regedit.exe in command-line mode, RemUReg has the advantages that it does not require a configuration file and can be run even when group policies have been configured to prevent the use of registry editing tools.
RemUReg takes a single command-line parameter, namely the path to a registry key within the HKEY_CURRENT_USER hive, delimited with quotation marks. When run, it attempts to delete the specified key, including all subkeys and values. The command is entirely non-interactive in that there are no runtime options, or confirmation requests; however it does report its progress to standard output.
Example usage: remureg.exe "SOFTWARE/Microsoft". Such an
invocation would delete everything under
HKEY_CURRENT_USER/SOFTWARE/Microsoft, probably not a good idea.
RemUReg is short for "remove user registry"; it does not and cannot remove keys from other hives, such as HKEY_LOCAL_MACHINE. This limitation has been incorporated quite deliberately, because a tool that allows arbitrary removing of registry keys without asking for confirmation is a dangerous tool indeed; limiting its destructive power to the profile of a single user seemed to be a sensible precaution, especially considering that it was intended primarily for use in logon scripts. However, there is nothing particularly magic about the HKEY_CURRENT_USER key; the code could easily be modified to work with all hives.
RemUReg is released under the terms of the GNU General Public Licence Version 2.