Deleting Registry Keys via Batch

by Michael Urspringer - 08.07.2009

For me to remember:

Windows Registry Editor Version 5.00
 
[-HKEY_LOCAL_MACHINE\SOFTWARE\key_to_be_deleted]

If you want to delete a key from the registry you place a “-” before the name of the key in the registry file.

Example:

If your registry file is called “sample.reg” you can now issue the command “regedit sample.reg /s” and the key “key_to_be_deleted” including all subkeys are deleted from the registry.

Tagged with:  

One Response to Deleting Registry Keys via Batch

  1. Nice one.
    This makes moving things around (like a Notes install) muuuch easier.

Leave a Reply

© 2000-2015 Michael Urspringer