Output agents monitored by SCOM to csv file

If you wish to output a report of everything being monitored in your scom 2012 management group via the scom agent then you can use powershell to achieve this.

The short powershell script listed below will output a csv file to the c: drive on the computer you run the script from called scomagentdevices.csv

NOTE:-This does not include agentless or network devices and is for SCOM 2012

SCRIPT LISTED BELOW………………….copy to notepad and save as a ps1 file

#Import SCOM powershell module
import-module OperationsManager

#Output list of all devices with a SCOM agent
get-scomagent|select DisplayName|export-csv -notype c:\scomagentdevices.csv

Advertisements
This entry was posted in Powershell for SCOM, SCOM 2012 SP1 and tagged , , , , , , , , , , . Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s