Home > Runs As Accounts, Tasks > Run As Accounts and Tasks

Run As Accounts and Tasks

This discussion came up on the technet forums recently and Steve Halsey from Microsoft came up with a great explanation:

“By default a task will use the default action account on an agent, that is if nothing else is specified in one of two places. The first place is when you run the task in the console, and you have change the account the task is run as, basically selecting a different account than the predefined run as account. If credentials are specified when the task is run they will override any other account settings.

The second place is inside the MP itself the author could have set the task to use a different Run As Profile. If the task has been set to use a different account profile, then this account rather than the default action account will be used. I can’t recall currently if you can set this run as profile when you are creating a task through the UI or not, but the xml of the Management Pack can use a Run As profile, the RunAs property just needs to be set in the WriteAction of the task”

WriteAction ID=”WA” RunAs=”MyLocalMachineAdministrator” TypeID=”System!System.CommandExecuter”

Categories: Runs As Accounts, Tasks
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: