Hi all,
I was looking around here the other day after having a nightmare with setting up Gateway failover - I should thank Pete Z for his document, so much better than MS kit.
Anyway..........on this site: http://blogs.technet.com/momteam/
I found this script:
# Get all gateway management servers so we can see what is setup
$GWs = Get-ManagementServer | where {$_.IsGateway -eq $true}
$GWs | sort | foreach {
Write-Host "";
"Gateway MS :: " + $_.Name;
"--Primary MS :: " + ($_.GetPrimaryManagementServer()).ComputerName;
$failoverServers = $_.getFailoverManagementServers();
foreach ($managementServer in $failoverServers) {
"--Failover MS :: " + ($managementServer.ComputerName);
}
}
Write-Host "";
Which I run on any MS server or even the RMS in the shell and it returns the gateways and their failover setup.
Hope someone else finds it helpful