AddComputers

<< Click to Display Table of Contents >>

AddComputers

Adds one or more computers to PDQ Inventory and triggers a scan using the default scan profile. Computers can be specified by name or hostname. DNS resolution is performed for each computer before it is added.

Syntax

PDQInventory AddComputers -Computers <computer1> [<computer2> ...] [-IgnoreDnsErr] [-IgnoreDuplicates]

Parameters

Parameter

Required

Description

-Computers <computer> ...

Yes

One or more computer names or hostnames to add, separated by spaces.

-IgnoreDnsErr

No

Adds computers even if DNS resolution fails. Without this flag, any computer that cannot be resolved in DNS will cause the command to fail.

-IgnoreDuplicates

No

Skips computers that already exist in PDQ Inventory rather than returning an error.

Examples

Add a single computer:

PDQInventory AddComputers -Computers WORKSTATION01

Add multiple computers at once:

PDQInventory AddComputers -Computers WORKSTATION01 WORKSTATION02 SERVER01

Add computers, skipping any that already exist or cannot be resolved in DNS:

PDQInventory AddComputers -Computers WORKSTATION01 WORKSTATION02 -IgnoreDuplicates -IgnoreDnsErr

NOTE: Each successfully added computer is immediately queued for a scan using the default scan profile.

 

 

 

© 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