How to Use PowerShell to List the Configured Management Agents in FIM

How to Use PowerShell to List the Configured Management Agents in FIM

FIM ScriptBox Item

Summary

The script lists the management agents that are configured on your system.



Script Code

001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
#-------------------------------------------------------------------------------------------------
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 1
}
#-------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------

 

note Note
To provide feedback about this script, create a post on the FIM TechNet Forum.
For more FIM related Windows PowerShell scripts, see the FIM ScriptBox.

 

Leave a Comment
  • Please add 1 and 6 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 9. Comment: Replace RGB values with color names in HTML to restore colors

  • Richard Mueller edited Revision 5. Comment: Removed (en-US) from title

  • Craig Lussier edited Revision 4. Comment: added en-US to tags and title

  • Peter Geelen edited Revision 2. Comment: Added screenshot

  • Ed Price MSFT edited Revision 1. Comment: Our title standard is to use "How to" and no gerunds.

Page 1 of 1 (5 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Ed Price MSFT edited Revision 1. Comment: Our title standard is to use "How to" and no gerunds.

  • Peter Geelen edited Revision 2. Comment: Added screenshot

  • Craig Lussier edited Revision 4. Comment: added en-US to tags and title

  • Richard Mueller edited Revision 5. Comment: Removed (en-US) from title

  • Richard Mueller edited Revision 9. Comment: Replace RGB values with color names in HTML to restore colors

Page 1 of 1 (5 items)