RestoreDatabase

<< Click to Display Table of Contents >>

RestoreDatabase

Restores the PDQ Inventory database from a backup. By default, presents an interactive list of available backups and prompts you to select one. The selected backup is integrity-checked before the restore is performed, and the current database is renamed before being replaced.

Backups are searched for in the Backups subfolder of the database directory, as well as any custom backup directory configured in Preferences.

Syntax

PDQInventory RestoreDatabase [-RestoreMostRecent]

Parameters

Parameter

Required

Description

-RestoreMostRecent

No

Skips the interactive backup selection prompt and automatically restores the most recently modified backup file.

Examples

Interactively select a backup to restore:

PDQInventory RestoreDatabase

Restore the most recent backup without prompting:

PDQInventory RestoreDatabase -RestoreMostRecent

 

 

 

© 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