ApproveAutoDownloads

<< Click to Display Table of Contents >>

ApproveAutoDownloads

Lists or approves pending auto-downloaded package versions. This command enables integration with change management systems, automated testing pipelines, and custom approval workflows.

When run without parameters, the command lists all packages with pending approval. Use -All to approve all pending packages, or -Package to approve specific packages by name or wildcard pattern.

Syntax

PDQDeploy ApproveAutoDownloads [-All] [-Package <packageName>] [-Force]

Parameters

Parameter

Required

Description

-All

No

Approve all packages with pending auto-download versions.

-Package

No

Package name(s) to approve. Accepts exact names, wildcard patterns (e.g. Adobe*), and comma-separated values for multiple packages.

-Force

No

Skip the confirmation prompt. Use in automated workflows to prevent interactive prompts.

Exit Codes

Exit Code

Meaning

0

Success. All specified packages were approved, or pending approvals were listed.

1

One or more packages failed to approve, or one or more specified packages were not found.

2

User cancelled at the confirmation prompt.

3

No packages pending approval were found.

Examples

List all packages pending approval:

PDQDeploy ApproveAutoDownloads

Approve all pending auto-download packages:

PDQDeploy ApproveAutoDownloads -All

Approve all pending packages without confirmation (for automated workflows):

PDQDeploy ApproveAutoDownloads -All -Force

Approve a specific package:

PDQDeploy ApproveAutoDownloads -Package "Google Chrome"

Approve all Adobe packages using a wildcard:

PDQDeploy ApproveAutoDownloads -Package "Adobe*"

Approve multiple specific packages:

PDQDeploy ApproveAutoDownloads -Package "Google Chrome","Mozilla Firefox"

Check the exit code in a PowerShell script:

PDQDeploy ApproveAutoDownloads -All -Force

if ($LASTEXITCODE -eq 0) {

  Write-Host "All packages approved successfully."

} elseif ($LASTEXITCODE -eq 3) {

  Write-Host "No packages pending approval."

} else {

  Write-Warning "Approval failed with exit code $LASTEXITCODE"

}

NOTE: Approving auto-downloaded packages requires the "Modify Packages" RBAC permission. Package approvals are recorded in the audit log when audit logging is enabled.

 

 

 

© 2026 PDQ.com Corporation. All rights reserved.

PDQ.com is a trademark of PDQ.com Corporation. All other product and company names are the property of their respective owners.

Help Version: 20.1.21.0