{"id":183,"date":"2007-06-11T21:26:43","date_gmt":"2007-06-11T19:26:43","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=183"},"modified":"2007-06-12T10:04:47","modified_gmt":"2007-06-12T08:04:47","slug":"how-to-list-a-file-on-a-agent-managed-computer","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=183","title":{"rendered":"How to list a file from a agent managed computer"},"content":{"rendered":"<p>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\u00c3\u00b6m 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,\u00c2\u00a0in the real world it could be for example a logfile from a application. The result will be shown in the task result box.<\/p>\n<ol>\n<li>Start the console, click Authoring and then expand Management Pack Objects<\/li>\n<li>Right-click Tasks and choose to create a new task<\/li>\n<li>In the Create task wizard &#8211; Task Type, choose Agent Task and Command line, choose your destination management pack and click Next<\/li>\n<li>In the Create task wizard &#8211; General Properties, input a task name, a description and choose target, for example Windows Server 2003 Computers as target. Click Next<\/li>\n<li>In the Create task wizard &#8211; Command Line, input<br \/>\nFull path to file: C:\\WINDOWS\\SYSTEM32\\cmd.exe<br \/>\nParameters: \/C type %WINDIR%\\WIN.INI<br \/>\nYou dont have to input a working directory. Click Create<\/li>\n<\/ol>\n<p>Now, open the web console (<a href=\"http:\/\/servername:51908\/\">http:\/\/servername:51908<\/a>) and test your new task.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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\u00c3\u00b6m I found the solution. First, it has to be a agent task to show up in the web console. In this example I will &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=183\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[19],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/183"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":0,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}