Home > Uncategorized > SCOM 2012 cmdlet: Export-SCOMEffectiveMonitoringConfiguration

SCOM 2012 cmdlet: Export-SCOMEffectiveMonitoringConfiguration

I had a few minutes this weekend and finally got to mess around with this cmdlet. I had been meaning too for a long time. The help example has a problem with the second line of the example. Feel free to use the example below. This cmdlet is a nice start to figuring out what is being monitored on a OpsMgr agent but still leaves much to be desired, like what thresholds are there etc.

First thing to do before using this cmdlet is to assign a Variable like what is done with $Members below to a group of computers that we fetch the GetRelatedMonitoringObjects. Once that is done take the $Members variable and pipe it to a for each loop that then sends the objects to the cmdlet Export-SCOMEffectiveMonitoringConfiguration which then outputs the configuration information into cvs files, whose names are variables from the display name of the objects were getting the configuration information for. Both lines below should be one line wrapped in the OpsMgr cmdShell.

$members = (Get-SCOMGroup -DisplayName "All Windows Computers").GetRelatedMonitoringObjects()


$members | foreach { Export-SCOMEffectiveMonitoringConfiguration -Instance $_ -Path "D:\temp2\$($_.DisplayName).
csv" -RecurseContainedObjects }



Categories: Uncategorized Tags:

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: