<< Click to Display Table of Contents >> ImportVariables |
Imports custom variable definitions from an XML file produced by ExportVariables. By default, variables whose names already exist are skipped. Use -Overwrite to replace existing variables.
Requires an Enterprise license.
PDQInventory ImportVariables -Path <inputFile> [-Overwrite | -SkipExisting]
Parameter |
Required |
Description |
|---|---|---|
-Path |
Yes |
Path to an XML file produced by ExportVariables. |
-Overwrite |
No |
Replace existing variables (matched by name) with the imported definitions. Cannot be combined with -SkipExisting. |
-SkipExisting |
No |
Explicit form of the default behavior: skip variables that already exist. Cannot be combined with -Overwrite. |
Exit Code |
Meaning |
|---|---|
0 |
Import succeeded. |
1 |
One or more variables failed to import, or the input file was malformed. |
3 |
The input file contained no importable variable definitions. |
Import variables, skipping any that already exist (default):
PDQInventory ImportVariables -Path C:\Exports\Variables.xml
Import variables, overwriting any with matching names:
PDQInventory ImportVariables -Path C:\Exports\Variables.xml -Overwrite
Import variables and be explicit about skipping existing names:
PDQInventory ImportVariables -Path C:\Exports\Variables.xml -SkipExisting
© 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