- # First retrieve information on the management servers
- $managementservers = get-managementserver
- $GTWServer1 = $managementservers | where {$_.Name -eq "GTWServer1.domain"};
- $GTWServer2 = $managementservers | where {$_.Name -eq "GTWServer2.domain"};
- # Settting up the failover between agents and Gateways
- Get-Agent -ManagementServer $GTWServer1 | foreach {set-managementserver -agentmanagedcomputer $_ -primarymanagementserver $GTWServer1 -failoverserver $GTWServer2 }
- Get-Agent -ManagementServer $GTWServer2 | foreach {set-managementserver -agentmanagedcomputer $_ -primarymanagementserver $GTWServer2 -failoverserver $GTWServer1 }
This posting is provided "AS IS" with no warranties.
No comments:
Post a Comment