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> ...] [-Credential <name>] [-IgnoreDnsErr] [-IgnoreDuplicates]

Parameters

Parameter

Required

Description

-Computers <computer> ...

Yes

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

-Credential <name>

No

Name of the scan credential to assign to the added computers (e.g., DOMAIN\ScanUser). Must match an existing credential name in PDQ Inventory. If omitted, the computers use the default scan credential.

-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 a computer and assign a specific scan credential:

PDQInventory AddComputers -Computers WORKSTATION01 -Credential DOMAIN\ScanUser

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