Jump to content

Recommended Posts

Posted (edited)

I am trying to run a PowerShell command as part of my TS to kick off a PDQ Deploy nested package but I just can not seem to get it to run.

 

If I run the script manually from the client machine it kicks off the deployment fine.

 

I have tried running it using a PowerShell task in SCCM and as a command line task calling the PowerShell script, still no luck. Has anyone manged to do this with PDQ Deploy?

 

Latest Error:

 

PDQSCCMER.png

Edited by Disease
Posted

If I run the Powershell script using the 'Run PowerShell Script' option in SCCM TS as a package it errors with:

 

Failed to run the action: Run PowerShell Script.

The handle is invalid. (Error: 00000006; Source: Windows) TSManager 19/03/2019 14:11:51 4372 (0x1114)

  • 3 months later...
Posted
I have mine in a 'Run Command Line' not Powershell...(MDT not SCCM)

 

Powershell.exe -ExecutionPolicy ByPass -File "%SCRIPTROOT%\CustomScripts\pdqdeploy-psexec.ps1"

@toffee_paul - I've tried this but am getting prompted by the script to allow or disallow etc etc. I simply cannot get past this at the moment. Any idea why this would be happening? I've got exactly the same command as you.

 

Cheers

 

Gareth

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...