<< Click to Display Table of Contents >> PDQ Inventory Command Line Reference |
PDQ Inventory includes a command line interface (CLI) that allows you to automate and script common operations. All commands are run through PDQInventory.exe, which is located in the PDQ Inventory installation directory (typically C:\Program Files\Admin Arsenal\PDQ Inventory).
To use the CLI, open a cmd.exe or PowerShell window as Administrator, then run commands using the syntax:
PDQInventory <command> [parameters]
To see a list of all available commands, run:
PDQInventory Help
To see usage details for a specific command, run:
PDQInventory Help <command>
Command |
License |
Description |
|---|---|---|
Free |
Adds one or more computers to PDQ Inventory and triggers a scan. |
|
Enterprise |
Triggers an Active Directory synchronization. |
|
Free |
Manages the background service, including starting, stopping, and updating service account credentials. |
|
Free |
Runs a SQLite integrity check and reports whether the database is healthy or corrupt. |
|
Enterprise |
Lists, adds, or removes Windows accounts authorized to connect to the background service. |
|
Enterprise |
Creates a new custom field of the specified type. |
|
Enterprise |
Creates a new custom variable with the specified name and value. |
|
Free |
Opens the database directly in the sqlite3.exe command line tool. |
|
Enterprise |
Runs a multi-step cleanup process to remove stale data and improve database performance. |
|
Free |
Deletes one or more computers from PDQ Inventory by name or ID. |
|
Enterprise |
Exports one or more collections to XML files for backup or cross-environment synchronization. |
|
Enterprise |
Lists all collections and their paths. |
|
Enterprise |
Lists the names of all computers in PDQ Inventory. |
|
Enterprise |
Lists the names of all scan profiles. |
|
Enterprise |
Gets details for a specific collection. |
|
Enterprise |
Lists the computers that are members of a collection. |
|
Enterprise |
Outputs detailed information about a specific computer. |
|
Enterprise |
Lists computers that are currently online. |
|
Enterprise |
Returns status information for network discoveries by ID, running state, or recent history. |
|
Enterprise |
Gets details for a specific scan profile. |
|
Free |
Displays available commands and their license requirements, or usage details for a specific command. |
|
Enterprise |
Imports collections from exported XML files into PDQ Inventory. |
|
Enterprise |
Imports custom field values for computers from a CSV file. |
|
Free |
Runs a SQLite VACUUM on the database to reclaim disk space and improve performance. |
|
Free |
Captures a CPU performance profile of the background service for support diagnostics. |
|
Free |
Exports and re-imports the database to recover from corruption. |
|
Free |
Restores the database from a backup file. |
|
Enterprise |
Manually triggers an auto report to run immediately. |
|
Enterprise |
Scans all computers in one or more collections. |
|
Enterprise |
Scans one or more specific computers. |
|
Free |
Packages and uploads the database and support files to PDQ support. |
|
Enterprise |
Configures PDQ Inventory to run in Local, Client, or Server mode. |
|
Free |
Updates the Windows service account credentials used by the PDQ Inventory background service. |
|
Free |
Reads or writes internal settings and feature flags. |
|
Enterprise |
Starts a network discovery scan by subnet or IP range. |
|
Enterprise |
Stops a running or queued network discovery scan. |
|
Free |
Outputs information about the PDQ Inventory installation, such as version and database path. |
|
Free |
Tests a scan credential by connecting to a target computer. |
|
Enterprise |
Updates the value of an existing custom variable. |
|
Free |
Updates an existing scan credential stored in PDQ Inventory by name. |
|
Enterprise |
Sends a Wake-on-LAN packet to a computer. |
•All commands must be run from a command prompt or PowerShell window opened as Administrator.
•The PDQ Inventory background service must be running for most commands. OptimizeDatabase and RepairDatabase require the service to be stopped and will prompt you to stop it if it is running.
•Parameter names are case-insensitive and can be abbreviated to any unique prefix.
•String values containing spaces must be wrapped in double quotes.
NOTE: Commands marked Enterprise require a PDQ Inventory Enterprise license. Running them with a lower license tier will return an error.
© 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