Jump to content

how to remove registry value via regedit /s *.reg


Recommended Posts

I know this may seem odd, but I already know how to remove a registry key by making a registry file like this:

test.reg

Windows Registry Editor Version 5.00

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"DAEMON Tools-1033"="\"C:\\Program Files\\D-Tools\\daemon.exe\"  -lang 1033"

But what if I wanted to just remove a value? I tried something like this but cannot figure it out

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
-"DAEMON Tools-1033"="\"C:\\Program Files\\D-Tools\\daemon.exe\"  -lang 1033"

I know I can do this using reg.exe but since I am already importing a reg file using regedit /s test.reg was hoping to just do it there.

Dennis

Link to comment
Share on other sites


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"DAEMON Tools-1033"=-

Should do it.

[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]

Will delete the entire key "Run" and everything in it. the =- in the first code block, will narrow it down to ONE value. Just be sure not to also include the - in the path to the key ;)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...