Custom Right-Click Options

I am running Bigfix 10.0.1.41. I have a fixlet to create custom right-click options, but the options are not adding. The registry entry is not created. If I run the reg file manually, it adds the key. There is something about running under Bigfix. There is no error in the log file. It returns 0…

createfile until endoffile
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\BigFix\Enterprise 
Console\Settings\ComputerListContextMenuExtensions\Connect to C$]
"ShellCommandRelevance"="\"explorer \\\\\" & (value of property results whose (name of property of it = 
\"DNS Name\" ) of current computer as string) & \"\\c$\""
"ComputerApplicabilityRelevance"="true"
"MaxComputerSetSize"=dword:00000005
"MenuDisplayName"="&Connect to C$"
endoffile

move __createfile rightclick.reg

override wait
runas=currentuser
completion=job
hidden=true
wait cmd.exe /C regedit.exe /S rightclick.reg

delete rightclick.reg

action uses wow64 redirection false
Maybe?

No that didn’t make any difference.

I tried creating the registry entries using a reg file in the Manage Software Distribution Packages running as current user, and that didn’t work either. It completes without error, but does not add the reg keys.

I have been having issues with regedit.exe lately. try a reg import instead

createfile until endoffile
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\BigFix\Enterprise Console\Settings\ComputerListContextMenuExtensions\Connect to C$]
"ShellCommandRelevance"="\"explorer \\\\\" & (value of property results whose (name of property of it = \"DNS Name\" ) of current computer as string) & \"\\c$\""
"ComputerApplicabilityRelevance"="true"
"MaxComputerSetSize"=dword:00000005
"MenuDisplayName"="&Connect to C$"
endoffile

delete rightclick.reg
move __createfile rightclick.reg

override wait
hidden=true
runas=currentuser
wait cmd.exe /C reg import rightclick.reg

delete rightclick.reg
2 Likes

Wow!!! Thank you so much. Reg worked really well. It does not cause UAC to popup either.

1 Like