Answered by:
Creating an Recovery Task in SCOM to run under an Specific Run As Account

Question
-
Hi,
I have Requirement to Restart Service of Remote Machine base on SQL Query Output of List of machine which are in hung State for which we have monitor to get this Result.
The Monitor run expected as we have targeted it to run on SQL Server itself to fetch the data of the failed computer from the monitor (SQL query via VBScript).
However we want the monitor to have Recovery Task which should restart the Service on Remote Machine, This is however not happening as the Remote machine which are output of Monitor Result (SQL Server Itself) don`t have permission to Reset the service .
My Question here is.
Can we make the Recovery Task under specific Run A/C, If Possible Where in the Authoring console is that option to change the Run As account or do we need to edit the XML File to add an run as account.
Jason Aranha
- Edited by Jason Aranha Wednesday, August 20, 2014 4:59 AM grammar
Tuesday, August 19, 2014 6:47 PM
Answers
-
-
Hi,
When export the pack and open the XML, we will see whether the task is associated with a RunAs account.
Creating a task in the console will not allow you to assign a RunAs account.
To run a task under a specified RunAs account, we should edit the xml, add RunAs line, something like this:
<WriteAction ID="PA" TypeID="System!System.CommandExecuter" RunAs="YourRunAsAccount" Target="TaskTargetClass">
Otherwise, the task will run under the default action account on that agent, which is usually local system.
Regards,
Yan Li
Regards, Yan Li
- Marked as answer by Yan Li_ Friday, August 29, 2014 4:38 AM
Friday, August 22, 2014 1:45 AM
All replies
-
-
Hi,
When export the pack and open the XML, we will see whether the task is associated with a RunAs account.
Creating a task in the console will not allow you to assign a RunAs account.
To run a task under a specified RunAs account, we should edit the xml, add RunAs line, something like this:
<WriteAction ID="PA" TypeID="System!System.CommandExecuter" RunAs="YourRunAsAccount" Target="TaskTargetClass">
Otherwise, the task will run under the default action account on that agent, which is usually local system.
Regards,
Yan Li
Regards, Yan Li
- Marked as answer by Yan Li_ Friday, August 29, 2014 4:38 AM
Friday, August 22, 2014 1:45 AM