#-----------------------------------------------------------------------------------------------
set-variable -name ObjectGuid -value "{3CB040C6-D993-4DF9-98C0-F6BB35E8E91C}" -option constant
set-variable -name NameSpace -value "root\MicrosoftIdentityIntegrationServer" -option constant
#-----------------------------------------------------------------------------------------------
$wmiQuery = "Select * from MIIS_CSObject where Guid = '$ObjectGuid'"
$lstObjects = get-wmiobject -namespace "$NameSpace" -computer "." -query "$wmiQuery"
if($lstObjects -eq $null) {throw "Object not found"}
$lstObjects | format-list
#-----------------------------------------------------------------------------------------------
trap
{
Write-Host "`nError: $($_.Exception.Message)`n" -foregroundcolor white -backgroundcolor darkred
Exit
}
#-----------------------------------------------------------------------------------------------
Markus Vilcinskas, Technical Content Developer, Microsoft Corporation