Deleting Registry Keys from the Command Line

April 23, 2009

There are two ways to delete a key from the Registry from the Command line. At the Windows Command line:

RegEdit /l location of System.dat /R location of User.dat /D Registry key to delete
You cannot be in Windows at the time you use this switch.

Or you can create a reg file as such:
REGEDIT4

[-HKEY_LOCAL_MACHINE\the key you want to delete]
Note the negative sign just behind the[
Then at the Command line type:
1. RegEdit C:\Windows\(name of the regfile).

Related Posts

  • Removing Sound Events from Control Panel / SoundsWhen you view what events you can assign sounds to from Control Panel / Sounds,you cannot delete the events themselves ...
  • Getting Rid of TipsRemember those "Tips of the day" that appeared when you first install Win95?If you don't want them any longer and want ...
  • Automatic Screen RefreshWhen you make changes to your hard drive and use Explorer, the changes are not usually displayed until you press the F ...
  • Enabling the Middle Mouse Button on Logitech MouseTo enable the middle mouse button on Logitech Mouses to act as a double-click button by only pressing it once: Run Reg ...
  • Here is how to add any application to the menu when you right click on any Folder.This could be useful if there is an ...

No comments