.SYNOPSIS

Gets the Num* Counters of a Management Agent

.DESCRIPTION

The Get-ManagementAgentCounts function uses the Get-Member cmdlet to find all of the Num* methods on the MA
It then executes them all and returns a new object that has all the counts

.PARAMETER ManagementAgent

Specifies the MA for which the counts will be collected
This can either be the MA name as String
or the WMI object using the MicrosoftIdentityIntegrationServer:MIIS_ManagementAgent class

.OUTPUTS

a new PSObject containing all of the counts

.EXAMPLE

Get the counters for the FOO MA
Get-ManagementAgentCounts -ManagementAgent FOO

.EXAMPLE

Get the counters for the FOO MA by piping Get-ManagementAgent into Get-ManagementAgentCounts
Get-ManagementAgent -Verbose -ManagementAgent FOO | Get-ManagementAgentCounts 

.EXAMPLE

Get the counters for all management agents by piping Get-ManagementAgent into Get-ManagementAgentCounts
Get-ManagementAgent | Get-ManagementAgentCounts 

Last edited Aug 14, 2012 at 2:32 AM by CraigMartin, version 1

Comments

nigeljones Mar 28, 2013 at 1:26 AM 
I only get a few stats and importantly not the numimportdelete that I want to use for calculating import deletion ratio.. Any ideas Craig TIA, I see MIIS Carol has a PS script but again I don't see numimportdelete