6 Replies Latest reply: Jul 7, 2016 7:49 AM by Peter Cammaert RSS

    invoke-command from Publisher

    Philipp Wesseling

      Good Morning,

       

      i am trying to run a VB Script file on a remote host and trigger the exectution of this script by a Supporting Task in Publisher.

      When i run the invoke command call from my own local PC it works as it should:

       

      invoke-command -asjob -computer REMOTE_HOST -scriptblock { cscript.exe "D:\VBScripts\test_2.vbs" }

       

      But the same command executed from a Supporting Task in Publisher fails with this error:

       

      (2016-07-07 09:25:23) Error: Exception=System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified || at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) || at System.Diagnostics.Process.Start(ProcessStartInfo startInfo) || at SolutionGlobal.DOSExecute.ExecuteCommand(ILogBucket i_LogBucket, String i_Command)

      (2016-07-07 09:25:23) Error: The process didn't start

       

      Any idea how i can make this work - or any other approach that makes this work is greatly appreciated.

      Thanks in advance!