Client Management Suite

 View Only
  • 1.  trigger install from client via script

    Posted Oct 08, 2015 10:22 AM

    I can do a custom inventory and run it locally and the vb will upload it to the NS

     

    Is there a way to run a local script to trigger a policy or quick task to run without using a console or catalog?



  • 2.  RE: trigger install from client via script

    Posted Oct 26, 2015 06:13 AM

    If you have the custom inventory as a policy in the Altiris Agent you can trigger the policy using the following vbscript.

    Dim WshShell, client, swd, taskGuid
    Set WshShell = WScript.CreateObject("WScript.Shell" )
    set client = wscript.createobject ( "Altiris.AeXNSClient" ) 
    set swd = client.ClientPolicyMgr.ClientAgent ( "Altiris.SWD" ) 
    taskGuid = "{BE8F6D17-5CEF-498C-9272-1A76586E1882}"
    
    swd.RunAdvertisement taskGuid, 1 
    

    Change the taskguid to the taskguid you have in your custom inventory policy or any other policy you want to trigger. You find the taskguid = task ID in the details of the package within the Altiris Agent.

    Example:

    taskid.JPG

    Hope this helps.

    Stefan