Registry Change to a Key with a Default Value name

(imported topic written by mholder91)

I’ve worked with BigFix for several years now, but mainly just for pushing pre-packaged fixlets for patching purposes. I’ve just recently started digging in deeper to recognize the full power of the tool, so bear with me if this is a naive question. I also don’t have a whole lot of experience with registry editing, so again, bear with me.

I’m trying to use BigFix to set a registry key that contains a default value name and I’m not having much luck. For example:

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32

When using regedit and navigating to the above key, the only entry is:

Name Type Data

(Default) REG_SZ c:\windows\system32\shdocvw.dll

I’ve been asked to check this entry and change it based on what version of IE is running on that machine. I already have properties set up for IE version, so I just wanted to start slow and create a separate task that will edit this entry. I’ll worry about adding the logic for IE version after I get this simple registry edit task to work. I’ve tried using the Registry Wizard, but I just can’t seem to get the syntax down for editing this entry that doesn’t really have a name. I’ve also tried simply using the “regset” command and this results in a task that completes successfully, but the entry in the registry never gets changed.

Here is the command I’ve tried along with several variations:

regset "

http://HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib{{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32

" “(Default)”=“c:\windows\system32\shdocvw.dll”

Can anyone help me out and shed some light on my issue? Thank you in advace!

(imported comment written by labuski91)

you need to escape out the backslashes in the data part. so instead of “c:\windows\system32\shdocvw.dll” try “c:\windows\system32\shdocvw.dll”

(imported comment written by labuski91)

also just realized you were trying to write to the default key… if thats the case you dont need to put anything in the key name. try this:

regset "

http://HKEY_LOCAL_MACHINE\SOFTWARE\Classes\TypeLib{{EAB22AC0-30C1-11CF-A7EB-0000C05BAE0B}\1.1\0\win32

" “”=“c:\windows\system32\shdocvw.dll”

(imported comment written by mholder91)

Thank you very much for the reply. It looks like that did the trick! Much appreciated!

I’ve used the Registry wizard within BigFix before without an issue, so the reason this one wasn’t working was because the data value contained backslashes???

(imported comment written by labuski91)

mholder

Thank you very much for the reply. It looks like that did the trick! Much appreciated!

I’ve used the Registry wizard within BigFix before without an issue, so the reason this one wasn’t working was because the data value contained backslashes???

correct, bigfix dynamically creates a .reg file so you have to keep in the rules of .reg files.

go here

http://support.bigfix.com/fixlet/documents/CustomAuthoringTrainingGuide-6-17-2005.pdf

and look at the bottom of page 63 for more information.

(imported comment written by BenKus)

Here is some more info about the curly brackets:

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

Ben