Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Using PSEXEC within a Task sequence

$
0
0

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


Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>