Altiris Software Dev Kit (ASDK)

 View Only
  • 1.  ChangeAdvancedOptions help for optionsXml parameter

    Posted Nov 29, 2019 01:28 PM

    Hello,

     

    We have version 8.5 RU2 and in the asdk help file found on the server there is no mention of the ChangeAdvancedOptions method.

    I would use it for changing "Run options" of a task I created.

    What are the XML elements of the optionsXml parameter?

     

    Thank you,



  • 2.  RE: ChangeAdvancedOptions help for optionsXml parameter

    Posted Dec 01, 2019 12:50 AM
    Creating/Importing/Executing NS Tasks via Workflow https://www.symantec.com/connect/articles/creatingimportingexecuting-ns-tasks-workflow <minWaitTime>1 minutes</minWaitTime> <maxWaitTime>1 minutes</maxWaitTime> <minCompletion>1 %</minCompletion> One option is to create a task with the Params you need then check the State column to see what has been configured. Which options are you wanting to set?


  • 3.  RE: ChangeAdvancedOptions help for optionsXml parameter

    Posted Dec 02, 2019 03:36 PM
      |   view attached

    Hi Alex,

    The params you are metionning are for the TaskManagement.ExecuteTask Method but I'm looking for the TaskManagement.ChangeAdvancedOptions Method.

    When I create the task using SoftwareTasksManagementLib.CreatePackageDeliveryTask Method, the "Run as" advance option is set to "Current logged-on user" but I need to change this to "Symantec Management Agent credential". (see attach file).

    Thank you,



  • 4.  RE: ChangeAdvancedOptions help for optionsXml parameter

    Posted Dec 03, 2019 04:24 PM
      |   view attached

    Maybe this image explain better what I'm searching for.



  • 5.  RE: ChangeAdvancedOptions help for optionsXml parameter

    Posted Dec 04, 2019 04:26 AM

    When you view/export a task there is a node for "ScriptAdvanced", have you tried sending that up with the options you want to change?

    <scriptAdvanced processSensitiveData="True" 
      collectOutput="False" 
      killChildProcesses="False" 
      useReturnCodeToSucceed="False" 
      returnCodeToSucceed="0" 
      runAs="Default" 
      username="" 
      window="ShowNormal" />