StopNetworkDiscovery

<< Click to Display Table of Contents >>

StopNetworkDiscovery

Gracefully stops a running, queued, or paused network discovery scan. Use GetNetworkDiscoveryStatus to find the ID of the discovery to stop.

Syntax

PDQInventory StopNetworkDiscovery -Id <id>

Parameters

Parameter

Required

Description

-Id <id>

Yes

The numeric ID of the discovery to stop. Use GetNetworkDiscoveryStatus -Running to find the ID of the current discovery.

Exit Codes

Exit Code

Meaning

0

Discovery stopped successfully.

1

Discovery is not running (e.g., already finished or aborted).

3

The specified discovery ID was not found.

Examples

Stop the discovery with ID 42:

PDQInventory StopNetworkDiscovery -Id 42

Find and stop the currently running discovery (PowerShell):

$id = (PDQInventory GetNetworkDiscoveryStatus -Running -Brief | Select-Object -First 1).Split("`t")[0]

PDQInventory StopNetworkDiscovery -Id $id

 

 

 

© 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