Deleting Registry values with a .reg file

Sometimes you just want to do something simple in a batch file, and I’d always thought it wasn’t possible to ‘delete’ a value in a .reg file (as the file is applied as a ‘merge’), but it is…

Just replace the value with a – (minus)…


One thought on “Deleting Registry values with a .reg file

  • December 23, 2009 at 2:10 am

    You can also use:

    reg delete HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer /v NoDriveTypeAutoRun

Comments are closed.