Enable the TMG topology view

To enable the TMG topology view, you must configure all Forefront TMG servers to discover objects on other Forefront TMG servers, as follows:

  1. Open the System Center Operations Manager Console, click the Administration tab, and then select Agent Managed.

  2. For every computer in an array deployment that is monitored by this management pack:

    1. Right-click the computer name and select Properties.

    2. In the Agent Properties dialog box, click the Security tab.

    3. On the Security tab, select Allow this agent to act as a proxy and discover managed objects on other computers, and then click OK.

Important

You must restart the OpsMgr Health Service before the new agent proxy setting takes effect.

If the number of agents in the environment makes it impractical to manually enable every Forefront TMG server, use the following PowerShell script:

param ($serverName,$groupDisplayName)
add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client";
set-location "OperationsManagerMonitoring::";
new-managementGroupConnection -ConnectionString:$serverName;
set-location $serverName;
$group = get-monitoringobject | where {$_.DisplayName -eq $groupDisplayName}
$relatedMonitoringObjects = $group.GetRelatedMonitoringObjects()
foreach($monitoringObject in $relatedMonitoringObjects)
{
    $agent = get-agent | where {$_.PrincipalName -eq $monitoringObject.DisplayName}
    if($agent -ne $null)
    {
       "Enabling proxying for " + $agent.PrincipalName
       $agent.ProxyingEnabled = $true
       $agent.ApplyChanges()
    }
}

To run the script, copy and paste the above script to Notepad, save the file on the management server as C:\EnableProxying.ps1 and run it using the following syntax:
powershell C:\EnableProxying.ps1 -ServerName:localhost -groupDisplayName:'Microsoft Forefront TMG Computers'
The above command will enable agent proxy on the local management server for all agents that are members of the computer group with display name 'Microsoft Forefront TMG Computers'. To run this script against a different computer group, change the computer group display name in the -groupDisplayName parameter.