Monday, November 15, 2010

How to add/remove Registry Items using a REG File

Simply export the required reg keys from the registry into a REG file. Or create one yourself.
Then use the following command line.

REGEDIT [ /S ] addsome.REG

---------------------------------
To remove an entry:

To remove an entire "tree" from the registry using REGEDIT and a .REG file, just add a minus sign before the tree name:

REGEDIT4
[-HKEY_CURRENT_USER\DummyTree]
will remove the entire tree "DummyTree".

To remove an individual item from the registry, place the minus sign after the equal sign:
REGEDIT4
[HKEY_CURRENT_USER\DummyTree]
"ValueToBeRemoved"=-

No comments:

Post a Comment