I'm using Windows 7 and this is what I got through CMD:
Fri 08/08/2014 8:13:51.72 | C:\Users\MrCMD
>reg.exe delete /?
REG DELETE KeyName [/v ValueName | /ve | /va] [/f]
KeyName [\\Machine\]FullKey
Machine Name of remote machine - omitting defaults to the current machine.
Only HKLM and HKU are available on remote machines.
FullKey ROOTKEY\SubKey
ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey The full name of a registry key under the selected ROOTKEY.
ValueName The value name, under the selected Key, to delete.
When omitted, all subkeys and values under the Key are deleted.
/ve delete the value of empty value name (Default).
/va delete all values under this key.
/f Forces the deletion without prompt.
Examples:
REG DELETE HKLM\Software\MyCo\MyApp\Timeout
Deletes the registry key Timeout and its all subkeys and values
REG DELETE \\ZODIAC\HKLM\Software\MyCo /v MTU
Deletes the registry value MTU under MyCo on ZODIAC
Or, I think we can DELETE some keys or MODIFY some values by this algorithm:
- Export registry location of keys/values we want to delete/modify into a file (File01.reg).
- Edit/modify appropriate key/value and save to new file (File02.reg).
- Import that modified file (File02.reg) into Windows Registry.
Reference to EXPORT registry.
Fri 08/08/2014 8:24:53.19 | C:\Users\mardir01
>reg.exe export /?
REG EXPORT KeyName FileName [/y]
Keyname ROOTKEY[\SubKey] (local machine only).
ROOTKEY [ HKLM | HKCU | HKCR | HKU | HKCC ]
SubKey The full name of a registry key under the selected ROOTKEY.
FileName The name of the disk file to export.
/y Force overwriting the existing file without prompt.
Examples:
REG EXPORT HKLM\Software\MyCo\MyApp File01.reg
Exports all subkeys and values of the key MyApp to the file File01.reg
Reference to IMPORT registry.
>reg.exe import /?
REG IMPORT FileName
FileName The name of the disk file to import (local machine only).
Examples:
REG IMPORT File02.reg
Imports registry entries from the file File02.reg
Brighter ideas for improvement are welcome. :) :) :)
1using a .reg file, even from a network drive should work fine. If it isn't, then, I expect it is down to UAC or other security measures. – William Hilsum – 2012-03-26T10:56:25.533