Listing and exporting all SCOM monitors
This example demonstrates how to list and export all the available monitors in the specific management pack.
Assumptions
In the following example, we will extract all the monitors of the FileMonitor.Guru.Test.MP
custom management pack and store it in C:\SCOM\MP\MP.txt
:
$MP = "FileMonitor.Guru.Test.MP" $FileLocation = "C:\SCOM\MP\MP.txt" $monitorList = Get-Monitor –ManagementPack $mp