Hi,
I am working on some scripting with TMG and have run into some issues modifying the configuration via the COM interface.
For example - if you have a web publishing rule set up with customised selections under Traffic > Filtering > Configure HTTP, this will create an entry under the rule's vendor parameter sets. To view it you can use this script in an elevated Powershell:
$fpcroot = New-Object -ComObject fpc.root $tmgarray = $fpcroot.GetContainingArray() $global:PolicyRules = $tmgarray.ArrayPolicy.PolicyRules $rule = $PolicyRules.Item("YOUR-RULE-NAME") $rule.VendorParametersSets
You can see the entry in question is {f1076e51-bbaf-48ba-a2d7-b0875211e80d}. If you select that entry (eg.
$rule.VendorParametersSets.Item('{f1076e51-bbaf-48ba-a2d7-b0875211e80d}') Name AllNames ---- -------- {f1076e51-bbaf-48ba-a2d7-b0875211e80d} {XML_POLICY}
), you still can't view the actual data under the {XML_POLICY} value.
Is it possible to retrieve the data in PowerShell? I can write to it easily, so it should be readable...
Thanks