Removing registry value that contains curly brackets?

(imported topic written by jasonpap200291)

Hi Folks,

I need to remove a registry value (not the key, but a value name and value data under the key) but the value name has curly brackets. It’s the only thing I can think of that is causing my error (action fails during creation, doesn’t even get to run).

Here is the key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellExtensions\Approved

Here is the string value name and value data in that key:

{8BEEE74D-455E-4616-A97A-F6E86C317F32} = LDVP Shell Extensions

Here is the code snippet that I have that won’t work:

APPENDFILE

Any thoughts on this? I’ve tried every way but Sunday but no love here.

Thanks in advance!

-Jason

(imported comment written by jessewk)

Just use a double left bracket:

APPENDFILE

But it also looks to me like you are missing some quotes and your regfile syntax is off.

You could just use the regset command rather than creating a .reg file:

regset "

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellExtensions\Approved

" “{{8BEEE74D-455E-4616-A97A-F6E86C317F32}”=""

(imported comment written by BenKus)

FYI:

http://support.bigfix.com/cgi-bin/kbdirect.pl?id=1230

Ben

(imported comment written by jasonpap200291)

Thank you Jesse and Ben - your time is much appreciated as always.

-Jason