Tech Tips / Windows NT / Registry

Deleting registry values from the command line

You can delete a registry setting from a command line or batch file using the Reg.exe utility that comes with the Windows NT Resource Kit Supplement 2. Typing reg delete HKLM\Software\regsetting deletes the HKEY_LOCAL_MACHINE\Software\regsetting value. This command requires confirmation, unless the /f switch is used at the end.

Note: Please remember that registry editing can be risky, so always have a verified backup before you make changes.

Contact Us | Authors | Subject Index | Directory | RSS Feeds

Copyright ©2006