Hi all, so I'm finally trying to call a PowerShell script from the Workflow engine and I've immediately hit a big stumbling block that Google and documentation can't seem to help with.
Using the "ExecuteScript" utility, I point the "StartUpPath" to the directory containing my script and select "PowerShell" as the "scriptType".
In additiion, I provide the full path to my "script" variable and provide the arguments I need to pass.
When I deploy and execute the Workflow, it goes to a Pending state and the CVD.log on the Workflow engine server reports the following:
2116 718 09/11 14:47:25 ### [CVD ] ** CVD_CVSESSION_ERROR: RemoteHost=backupwc1.lab.melbourneit.com: Remote execution failed.
* Received remote execute request for process powershell.
* Could not find this executable: C:\Program Files\CommVault\Simpana\Base\powershell.exe.
2116 718 09/11 14:47:25 ### [CVD ] [cvsHandleRemoteExecRequest] RemoteHost=backupwc1.lab.melbourneit.com Command=powershell. Validating executable is not succeeded. Error Msg:[ Executable file not found. ]
2116 718 09/11 14:47:25 ### [CVD ] [cvsHandleRemoteExecRequest] CVD_CVSESSION_INFO: RemoteHost=backupwc1.lab.melbourneit.com. Received remote exec request [cmd='powershell'].
Why would the Workflow engine be looking in the Simpana Base directory for PowerShell?
So far I haven't found any options to define the location of PowerShell and it is in the default location that I don't think can be changed anyway: