I am trying to use a "Run From Command" task in a task sequence.
The command is below:
Command line cmd /c C:\Tools\SysinternalsSuite\psexec \\servename -u userID -p userPW /accepteula cmd /c powershell -noninteractive -file E:\PowerCLI_PS_Scripts\DisconnectCDFromTargetVM_Multi_VCs.ps1 -vmname targetname -vc VirtualCenter -vcuser VCUserID -vcpass VCPW
Basically the TS command is attempting to connect to a remote server and run a powershell script on that remote server. That powershell script runs PowerCLI cmdlets.
From the smsts.log:
The handle is invalid.InstallSoftware6/29/2018 10:27:07 AM4252 (0x109C)Connecting to remoteservername...
Starting PSEXESVC service on remoteservername...
Connecting with PsExec service on remoteservername...
Error deriving session key:InstallSoftware6/29/2018 10:27:07 AM4252 (0x109C)
Any help on this would be appreciated.
Steve Cupp