Home » System Center Operations Manager 2007 » How to list a file from a agent managed computer

Contoso.se

Welcome to contoso.se! My name is Anders Bengtsson and this is my blog about Microsoft infrastructure and system management. I am a principal engineer in the FastTrack for Azure team, part of Azure CXP, at Microsoft. Contoso.se has two main purposes, first as a platform to share information with the community and the second as a notebook for myself.

Everything you read here is my own personal opinion and any code is provided "AS-IS" with no warranties.

Anders Bengtsson

MVP
MVP awarded 2007,2008,2009,2010

My Books
Service Manager Unleashed
Service Manager Unleashed
Orchestrator Unleashed
Orchestrator 2012 Unleashed
OMS
Inside the Microsoft Operations Management Suite

Contoso.se

Welcome to contoso.se! My name is Anders Bengtsson and this is my blog about Azure infrastructure and system management. I am a senior engineer in the FastTrack for Azure team, part of Azure Engineering, at Microsoft.  Contoso.se has two main purposes, first as a platform to share information with the community and the second as a notebook for myself.

Everything you read here is my own personal opinion and any code is provided "AS-IS" with no warranties.



MVP awarded 2007,2008,2009,2010

My Books

Service Manager Unleashed


Orchestrator 2012 Unleashed


Inside the Microsoft Operations Management Suite

How to list a file from a agent managed computer

A saw a question in a news group about listing files on agent managed computers from the web console in Ops Mgr 2007. After some thinker and discussion with Mikael Nyström I found the solution. First, it has to be a agent task to show up in the web console. In this example I will list the C:\WINDOWS\win.ini file on the agent managed computer, in the real world it could be for example a logfile from a application. The result will be shown in the task result box.

  1. Start the console, click Authoring and then expand Management Pack Objects
  2. Right-click Tasks and choose to create a new task
  3. In the Create task wizard – Task Type, choose Agent Task and Command line, choose your destination management pack and click Next
  4. In the Create task wizard – General Properties, input a task name, a description and choose target, for example Windows Server 2003 Computers as target. Click Next
  5. In the Create task wizard – Command Line, input
    Full path to file: C:\WINDOWS\SYSTEM32\cmd.exe
    Parameters: /C type %WINDIR%\WIN.INI
    You dont have to input a working directory. Click Create

Now, open the web console (http://servername:51908) and test your new task.