{"id":561,"date":"2009-04-12T17:29:16","date_gmt":"2009-04-12T15:29:16","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=561"},"modified":"2010-09-01T12:25:26","modified_gmt":"2010-09-01T10:25:26","slug":"run-a-task-with-another-account","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=561","title":{"rendered":"Run a task with another account"},"content":{"rendered":"<p>If\u00c2\u00a0operators needs to run a task that they normally don\u00e2\u20ac\u2122t have permissions to run you can use run as accounts and profiles. I was trying that in Ops Mgr 2007 R2 this week.<\/p>\n<p>In my first scenario I needed operators in the user profile Contoso Operators to run the computer management task against a number of machines. But the operators don\u00e2\u20ac\u2122t have permissions enough on the target machines. So I created a account under run as accounts and configure a new run as profile. In the profile I specified the account and target a group. In that group I had added a couple of health service objects, as the computer management task are target to the health service class. This worked, but everything target to health service was affected by the new run as account. The result was a working task but a couple of new \u00e2\u20ac\u0153run-as-profile-account\u00e2\u20ac\u009d alerts in the console.<\/p>\n<p>My second idea was to create a new management pack including a new class and discovery rules\u00c2\u00a0for something on\u00c2\u00a0all the needed machines.\u00c2\u00a0I built\u00c2\u00a0this\u00c2\u00a0in the R2 Authoring Console. There are some good info about author\u00c2\u00a0management packs\u00c2\u00a0at <a href=\"http:\/\/www.authormps.com\/dnn\/\">this<\/a> page.<\/p>\n<p>When the discovery was working I added a task to run the computer management console.\u00c2\u00a0I then created a new profile, selected the same account as in the first scenario\u00c2\u00a0but target only my new class. When a operator now runs the task, it is target to the new class, and the profile with a specified account is also target to this new class. The result is that a operator can run the computer management task, with the specified account, even if they dont have enought permissions on their logged on domain account.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If\u00c2\u00a0operators needs to run a task that they normally don\u00e2\u20ac\u2122t have permissions to run you can use run as accounts and profiles. I was trying that in Ops Mgr 2007 R2 this week. In my first scenario I needed operators in the user profile Contoso Operators to run the computer management task against a number &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=561\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","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":[13,19],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561"}],"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=561"}],"version-history":[{"count":14,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":1764,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/561\/revisions\/1764"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}