Disease Posted March 19, 2019 Posted March 19, 2019 (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: Edited March 19, 2019 by Disease
Disease Posted March 19, 2019 Author Posted March 19, 2019 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)
toffee_paul Posted March 25, 2019 Posted March 25, 2019 I have mine in a 'Run Command Line' not Powershell...(MDT not SCCM) Powershell.exe -ExecutionPolicy ByPass -File "%SCRIPTROOT%\CustomScripts\pdqdeploy-psexec.ps1" 1
garethEds Posted July 8, 2019 Posted July 8, 2019 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
toffee_paul Posted November 28, 2019 Posted November 28, 2019 Sorry I missed this reply... have you had any luck resolving this? I'm not too sure what might be causing this not to work.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now