Home » System Center Operations Manager 2007 » Export agents to Excel

Export agents to Excel

A common questions in the forums is “how to export a list of all agents to Excel?” You can do that with Operations Manager shell. The Operations Manager command shell is built on Windows PowerShell. The Operations Manager command shell extends the Windows command shell with over 80 additional small utility programs, called cmdlets, which can either be run directly from the command shell prompt or called from within a batch file or script. To export a list of all agents and some info about them run the following command

get-agent | select Displayname,InstallTime,InstalledBy,Version | export-csv -notype c:\agents.csv

That will give you a CSV file, C:\agents.csv. Open the file with Excel, select all the data, click the “text to columns” button and choose comma delimeter. That will convert your data into nice columns.

…and there you have your list in Excel with nice columns


2 Comments

  1. that is a good tip, thanks. The thing with PS is that you can get a number of properties of your agent exporter too, like installation date and primary server.

  2. Or just go to agent managed computers in the console, select all, ctrl+c, open empty excel sheet, ctrl+v

    This is ofcourse if you need to do it once, manually. 🙂

    -Tero

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.