ExportPackages

<< Click to Display Table of Contents >>

ExportPackages

Exports one or more package definitions to XML files. This enables synchronization of packages between isolated networks, backup of package configurations, and infrastructure-as-code practices.

Exported files include all deployment steps, conditions, properties, and nested package dependencies.

Syntax

PDQDeploy ExportPackages -Name <packageName> -Path <outputPath> [-Overwrite] 

PDQDeploy ExportPackages -Name <package1>,<package2>,... -Path <outputDirectory> [-Overwrite]

Parameters

Parameter

Required

Description

-Name

Yes

One or more package names to export. Use commas to separate multiple names. Supports wildcard patterns (* and ?).

-Path

Yes

Output file path or directory. For a single package, this can be a full file path or a directory (the package name is used as the file name). For multiple packages, this must be a directory.

-Overwrite

No

Overwrite existing files without prompting. Without this flag, existing files will cause an error (single package with prompt) or be skipped (multiple packages).

Exit Codes

Exit Code

Meaning

0

All packages were exported successfully.

1

One or more packages failed to export.

2

User cancelled at the overwrite confirmation prompt.

3

No packages found matching the specified name(s).

4

One or more packages were skipped because output files already exist. Use -Overwrite to replace existing files.

Examples

Export a single package to a specific file:

PDQDeploy ExportPackages -Name "Adobe Reader" -Path C:\Exports\AdobeReader.xml

Export a single package to a directory (auto-generates filename):

PDQDeploy ExportPackages -Name "Adobe Reader" -Path C:\Exports

Export all packages matching a wildcard pattern:

PDQDeploy ExportPackages -Name "Adobe*" -Path C:\Exports

Export multiple named packages:

PDQDeploy ExportPackages -Name "7-Zip","Notepad++" -Path C:\Exports

Export and overwrite existing files:

PDQDeploy ExportPackages -Name "Adobe Reader" -Path C:\Exports -Overwrite

 

 

 

© 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.0.22.0