Friday, November 30, 2012

SCOM 2012 - Exporting Agent List

There will be times when you do a deployment where you need to validate the deployed agents against a "master list" of servers that a client has, in order to make sure that you are getting agents out to all machines. As you know using the console to do this is tedious at best. There is, however, a PowerShell command to export out the complete list of agents to a .csv file.

To pull the agent list, open Operations Manager Shell.
Start > All Programs > Microsoft System Center 2012 > Operations Manager Shell

For SCOM 2007 R2:
get-agent|export-csv -notype c:\AgentList.csv
For SCOM 2012:
get-scomagent|export-csv -notype c:\AgentList.csv
This will drop a .csv file on your C:\ called AgentList and you will be able to import this into Excel and compare with your master list.


More to come!

If you like this blog give it a g+1

No comments:

Post a Comment