4 Replies Latest reply on Mar 17, 2016 5:56 AM by AFP

    Create Task from Powershell




      I'm trying to create Scheduled task from powershell script.

      Here is my little script :


      $core = "MyCoreName"

      $ldWS = New-WebServiceProxy -uri http://$core/MBSDKService/MsgSDK.asmx?WSDL -usedefaultcredential

      $connected = $ldWS.ResolveScopeRights()

      $ldWS.ScheduleDistribution('TESTPS','7Zip_9.20','standard push distribution','','','PC1','')


      The task is successfully created with 7zip package but "PC1" is not added to the task.


      Is there anyone here using powershell and mbsdk ?