#------------------------------------------------------------------------------------------------------------
write-host "`nConfigured Management Agents"
write-host "============================"
$lstMA = @(get-wmiobject -class "MIIS_ManagementAgent" -namespace "root\MicrosoftIdentityIntegrationServer"`
-computername ".")
if($lstMA.count -eq 0) {throw "There is no management agent configured"}
$lstMA | format-list -property Name, Type, Guid
#------------------------------------------------------------------------------------------------------------
trap
{
Write-Host "`nError: $($_.Exception.Message)`n" -foregroundcolor white -backgroundcolor darkred
Exit
}
#------------------------------------------------------------------------------------------------------------
Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation