locked
Use predefined run as account in a task RRS feed

  • Question

  • Hi,

    I'm wondering about the meaning of the option 'use predefined run as account'  when executing a task.

    Is this the account the agent is running with? It should, because I cannot find an option to predefine an account for a particular task.

    Any input is appreciated.

    Alex
    Saturday, July 25, 2009 2:05 PM

Answers

  • 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">

    Monday, July 27, 2009 1:47 AM

All replies

  • 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">

    Monday, July 27, 2009 1:47 AM
  • I dont think we can specify the RunAs accounts while creating the tasks using the Operations Console or the Authoring Console.

    But if you are using the Authoring console and creating the WriteActionModule that will be used by the task, you will have the option of choosing the RunAs profile.

    Thanks,
    Shreedevi
    This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
    Monday, July 27, 2009 11:52 PM