Fixlet to Subscribe to CustomSite using Registry setting - Problem

(imported topic written by currier59)

I have tried the following Action script and it keeps failing and I can’t figure out why…

custom site subscribe {(concatenation of (“CustomSite_” & (value “MySiteName” of key “HKLM\SOFTWARE\MySite” of registry) as string))} as “{((value “MySiteName” of key “HKLM\SOFTWARE\MySite” of registry) as string)}” on “{parameter “action issue date” of action}”

Any ideas why the action would fail? The registry key exists and the concatenated “CustomSite…” does not exist.

Thanks…

(imported comment written by MattBoyd)

Hey currier59, my hunch is that your site name has some characters in it that are converted by BigFix. I’ve written some relevance to try and automatically convert the characters in the site name from their original value to the “BigFix-encoded” value. Feel free to incorporate it into your action (at your own risk, of course ;)) :

custom site subscribe {"CustomSite_" & concatenation "-2f" of (substrings separated by "/" of it) of concatenation "_" of (substrings separated by " " of it) of concatenation "-2d" of (substrings separated by "-" of it) of "MY/SITE/NAME"} as {concatenation "%2f" of (substrings separated by "/" of it) of concatenation "%20" of (substrings separated by " " of it) of concatenation "%2d" of (substrings separated by "-" of it) of "My/SITE/NAME"} on "Wed, 1 Jul 2009 00:00:00 +0000"

What is the value of “MySiteName” in your case?