Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

PDQ Deploy CLI - Powershell automation

Is there a way to determine when PDQ Deploy has completed a deployment (successfully or with failures) via PowerShell?

Here's my PowerShell script scenario:

  1. Identify sites from OpenVPN files
  2. Establish OpenVPN connection to site
  3. Confirm healthy connection with ping
  4. Pull Computers from PDQ Inventory
  5. Push package via PDQ Deploy
  6. ?? Wait for deployment to complete ??
  7. Stop OpenVPN connection to site
  8. Repeat process for each site

My script works, but I use a timer for Step 6. This is very inefficient as the script will wait even when deployments are already done, and it can potentially interrupt a deployment that needs more time.

PDQ Deploy CLI seems to only output that it initiated a deployment. In Event Viewer, I cannot find any events logging success/failure. I also ensured I have logging enabled (minus debugging) in preferences.

Anyone have any ideas?

0

Comments

3 comments
Date Votes
  • The Deploy CLI doesn't have anything that will show completed deployments, you'll have to query the database.

    0
  • @Colby Thanks for the info. I was hoping it would be a built in feature, but I should be able to work with the database.

    @PDQ Please consider adding deployment status support to CLI.

     

    PDQ Users looking for a potential solution. You should be able to query the Deployments table in \ProgramData\Admin Arsenal\PDQ Deploy\Database.db

    0
  • Thank you for the feature request. It’s important, as we've been a customer-driven product since the beginning. I've made a note of the request, but cannot provide a timeline when, or if, the request will be approved or, if approved, with what version.

    0