In a work environment, we have a piece of internal software which is updated periodically by our development team. When I deploy this software with PDQ Deploy, I want to be sure that I'm installing the newest version, so I copy it from the file server where it's saved, and replace the older executable saved on our PDQ Deploy server. So, my script looks something like this:
Copy-Item "\\fileserver01\apps\Player\Player*" -Destination "C:\PDQ Deploy\Repository\Player\PlayerInstaller.exe"
The script works perfectly when I run it with Powershell or Powershell ISE, but I am getting an error when I use it as a Powershell Step in PDQ Deploy. This is the only thing in the Outpug Log:
At C:\Windows\AdminArsenal\PDQDeployRunner\service-1\exec\Error Handling Wrapper.ps1:58 char:2
+ Throw $_.Exception.ErrorRecord
+ CategoryInfo : OperationStopped: (:) , RuntimeException
+ FullyQualifiedErrorId : ScriptHalted
Right now, PDQ's command line for this step is %systemroot%\System32\WindowsPowerShell\V1.0\PowerShell.exe -NoLogo -NonInteractive -NoProfile -ExecutionPolicy Bypass
Has anyone seen this? I've double-checked the deployment credentials, and it still fails while running under my personal account. Googling makes it seem like it may be a problem with the command line parameters that PDQ Deploy defaults to, but I've tinkered with the parameters there and it doesn't seem to make a difference.
Please sign in to leave a comment.