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:
- Identify sites from OpenVPN files
- Establish OpenVPN connection to site
- Confirm healthy connection with ping
- Pull Computers from PDQ Inventory
- Push package via PDQ Deploy
- ?? Wait for deployment to complete ??
- Stop OpenVPN connection to site
- 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?
Comments
The Deploy CLI doesn't have anything that will show completed deployments, you'll have to query the database.
@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
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.