PDQ Inventory Command Line Reference

<< 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>

Available Commands

Command

License

Description

AddComputers

Free

Adds one or more computers to PDQ Inventory and triggers a scan.

ADSync

Enterprise

Triggers an Active Directory synchronization.

BackgroundService

Free

Manages the background service, including starting, stopping, and updating service account credentials.

CheckDatabase

Free

Runs a SQLite integrity check and reports whether the database is healthy or corrupt.

ConsoleUsers

Enterprise

Lists, adds, or removes Windows accounts authorized to connect to the background service.

CreateCustomField

Enterprise

Creates a new custom field of the specified type.

CreateCustomVariable

Enterprise

Creates a new custom variable with the specified name and value.

Database

Free

Opens the database directly in the sqlite3.exe command line tool.

DatabaseCleanup

Enterprise

Runs a multi-step cleanup process to remove stale data and improve database performance.

DeleteComputers

Free

Deletes one or more computers from PDQ Inventory by name or ID.

ExportCollections

Enterprise

Exports one or more collections to XML files for backup or cross-environment synchronization.

GetAllCollections

Enterprise

Lists all collections and their paths.

GetAllComputers

Enterprise

Lists the names of all computers in PDQ Inventory.

GetAllScanProfiles

Enterprise

Lists the names of all scan profiles.

GetCollection

Enterprise

Gets details for a specific collection.

GetCollectionComputers

Enterprise

Lists the computers that are members of a collection.

GetComputer

Enterprise

Outputs detailed information about a specific computer.

GetOnlineComputers

Enterprise

Lists computers that are currently online.

GetNetworkDiscoveryStatus

Enterprise

Returns status information for network discoveries by ID, running state, or recent history.

GetScanProfile

Enterprise

Gets details for a specific scan profile.

Help

Free

Displays available commands and their license requirements, or usage details for a specific command.

ImportCollections

Enterprise

Imports collections from exported XML files into PDQ Inventory.

ImportCustomFields

Enterprise

Imports custom field values for computers from a CSV file.

OptimizeDatabase

Free

Runs a SQLite VACUUM on the database to reclaim disk space and improve performance.

ProfileBackgroundService

Free

Captures a CPU performance profile of the background service for support diagnostics.

RepairDatabase

Free

Exports and re-imports the database to recover from corruption.

RestoreDatabase

Free

Restores the database from a backup file.

RunAutoReport

Enterprise

Manually triggers an auto report to run immediately.

ScanCollections

Enterprise

Scans all computers in one or more collections.

ScanComputers

Enterprise

Scans one or more specific computers.

SendDatabase

Free

Packages and uploads the database and support files to PDQ support.

SetServiceMode

Enterprise

Configures PDQ Inventory to run in Local, Client, or Server mode.

SetServiceCredentials

Free

Updates the Windows service account credentials used by the PDQ Inventory background service.

Settings

Free

Reads or writes internal settings and feature flags.

StartNetworkDiscovery

Enterprise

Starts a network discovery scan by subnet or IP range.

StopNetworkDiscovery

Enterprise

Stops a running or queued network discovery scan.

SystemInfo

Free

Outputs information about the PDQ Inventory installation, such as version and database path.

TestCredential

Free

Tests a scan credential by connecting to a target computer.

UpdateCustomVariable

Enterprise

Updates the value of an existing custom variable.

UpdateScanCredential

Free

Updates an existing scan credential stored in PDQ Inventory by name.

WakeComputer

Enterprise

Sends a Wake-on-LAN packet to a computer.

General Usage Notes

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