<< Click to Display Table of Contents >> ExportSettings |
Exports all PDQ Inventory preferences and configuration settings to a single XML file. The output is equivalent to clicking Options > Preferences > Export All in the console, and can be re-imported via Options > Preferences > Import All.
This enables automated backup of PDQ configuration on a schedule, version control of settings in Git, disaster recovery workflows, configuration drift detection, and migration of settings between PDQ instances.
NOTE: This command requires a PDQ Inventory Enterprise license.
PDQInventory ExportSettings -Path <outputPath> [-Overwrite]
Parameter |
Required |
Description |
|---|---|---|
-Path |
Yes |
Output file path or directory. If a directory is specified, the file is written as settings.xml inside it. Parent directories are created if they do not exist. Both absolute and relative paths are supported. |
-Overwrite |
No |
Replace the destination file if it already exists. Without this flag, the command exits with an error if the file is already present. |
Exit Code |
Meaning |
|---|---|
0 |
Settings exported successfully. |
1 |
Export failed (I/O error, insufficient permissions, disk space issue, or database unavailable/locked). |
2 |
File already exists and -Overwrite was not specified. |
3 |
Path is invalid or inaccessible (invalid characters, path too long, or a parent directory could not be created). |
Export all settings to a specific file:
PDQInventory ExportSettings -Path C:\Backups\PDQInventory\settings.xml
Export all settings to a directory (writes settings.xml inside it):
PDQInventory ExportSettings -Path C:\Backups\PDQInventory
Export and overwrite an existing file:
PDQInventory ExportSettings -Path .\backup\settings.xml -Overwrite
NOTE: ExportSettings actions 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.14.0