Get-ScannerConfiguration

Gets the configuration settings for the Microsoft Purview Information Protection scanner.

Syntax

Get-ScannerConfiguration []

Description

The Get-ScannerConfiguration cmdlet gets the configuration settings for the Microsoft Purview Information Protection scanner.

If you run Import-ScannerConfiguration, this action automatically configures the scanner to get its configuration offline. As a result, when you run this Get-ScannerConfiguration cmdlet after importing settings from a file, OnlineConfiguration displays Off.

Examples

Example 1: Gets the configuration for the Microsoft Purview Information Protection scanner

PS C:\> Get-ScannerConfiguration
OnlineConfiguration : On
ReportLevel         : Info
LogLevel            : Trace
Cluster             : contoso-test
SqlInstance         : localhost\sqlexpress
DatabaseName        : AIPScannerUL_contoso-test
Cloud               : Commercial

This command gets the current PowerShell configuration settings for the Microsoft Purview Information Protection scanner.

In this example, the output shows that the scanner is using the default configuration for online configuration, the report level of Info, and a logging level of Trace. The cluster name, SQL instance, and database names are listed, and the cloud type is Commercial.

Inputs

None

Outputs

System.Object