Share via


Stop-Scan

Instructs the Microsoft Purview Information Protection scanner to stop the currently running scan cycle.

Syntax

Stop-Scan

Description

The Stop-Scan cmdlet stops an active scan for the current profile.

Stopping an active scan does not pause the scan cycle. Instead, it completely stops and cancels the scan, and shifts all scanners to idle mode until a new scan is requested.

When the new scan starts, it does not continue from the previous scan state, although the new scan does skip all files already scanned.

Note

It may take up to five minutes until all scanners receive the stop command.

Tip

If you want to pause a scan and have it start again from the same point, stop the Microsoft Purview Information Protection Scanner service on the scanner machine instead.

Examples

Example 1: Stop the currently running scan cycle

PS C:\> Stop-Scan

Outputs

System.Object