Powershell Step erroring in PDQ Deploy but not in Powershell ISE

Comments

5 comments

  • Canis Lupus

    Also wanted to add that when I click on "More Info" it just gives me "PowerShell script returned error code 1"

    0
    Comment actions Permalink
  • Canis Lupus

    The weird thing is that there is no C:\Windows\AdminArsenal\PDQDeployRunner\service-1\exec\Error Handling Wrapper.ps1 on my machine. All I have is C:\Windows\AdminArsenal\PDQDeployRunner containing Service.Log but no \service-1\ folder 

    0
    Comment actions Permalink
  • GrantG

    I believe those folders and files in C:\Windows\AdminArsenal\PDQDeployRunner are temporary while the deployment is running, and usually get removed as it completes.

    So that's probably why you don't see that .ps1 file there now.

    You could confirm by watching that folder during a deployment.  (I just did to confirm)

     

    That doesn't explain the error, just why the file is not there now.

    0
    Comment actions Permalink
  • Wei

    You may want to include "-Confirm:false" in your code or just use the built-in file copy in PDQ-Deploy.

    0
    Comment actions Permalink
  • Will Mabez

    I've ran into a similar error when including steps that have powershell in packages. Unfortunately, the error you're receiving is just a very general base line error returned by powershell that does not describe the problem very much. Attempt to change the deploy user settings to interactive or as logged on user. If these don't work you might rethink your plan. I don't see all that much value in copying an already up-to-date package from the \\fileserver01\ to your local machine. When you're on a console machine it should cascade down the updated player and be ready to deploy.

     

    Good luck!

    0
    Comment actions Permalink

Please sign in to leave a comment.