Set-AIPScannerConfiguration [-ReportLevel <ReportLevel>] [-OnlineConfiguration <OnlineConfiguration>] [<CommonParameters>]
The Set-AIPScannerConfiguration cmdlet sets local configuration settings for the Azure Information Protection scanner. You configure most of the scanner configuration settings in the Azure portal, but must use this cmdlet if you need to import configuration settings from a file because the scanner cannot support online configuration, or if you need to change the report level for the locally created reports.
Any changes will be used the next time the scanner runs. If you need the changes to take effect immediately, restart the Azure Information Protection Scanner service on the Windows server computer.
Example 1: Set the Azure Information Protection scanner to use online configuration
PS C:\> Set-AIPScannerConfiguration -OnlineConfiguration On Configuration was set successfully.
This command sets the scanner to get its configuration directly from the Azure Information Protection service.
Specifies whether the scanner gets its configuration settings directly from the Azure Information Protection service (the default), or uses an offline configuration file.
On: The default setting. The scanner gets its configuration settings directly from the Azure Information Protection service.
Off: Supported by the Azure Information Protection client (classic) only: The scanner is prevented from getting its configuration settings directly from the Azure Information Protection service. Instead, the scanner is configured by settings that you import from a file.
If the scanner cannot support online configuration, you must still configure the scanner in the Azure portal. Then, export the scanner configuration from the portal to a .json file and import this file by using the Import-AIPScannerConfiguration cmdlet.
|Accept pipeline input:||false|
|Accept wildcard characters:||False|
Define the level of logging for the scanner reports. When the scanner is first installed, by default, only files that are successfully labeled by the scanner are included in the log file.
Log files are stored in the %localappdata%\Microsoft\MSIP\Scanner\Reports folder. A summary report (.txt) includes the time taken to scan, the number of scanned files, and statistics of how many files were classified and protected. Detailed reports (.csv) has details for each file. The folder stores up to 60 reports for each scanning cycle and all but the latest report is compressed to help minimize the required disk space.
- Debug: Logs every file that was discovered and the resulting action. This level of logging is useful for troubleshooting but slows down the Azure Information Protection scanner. This category includes files that don't meet any of the conditions and files that are skipped because of an unsupported file type. For example, trying to label a file for classification-only when the file type doesn't support this action, and trying to label files that are automatically excluded. For more information, see the following information from the admin guides:
- Classic client: File types supported by the Azure Information Protection client
- Unified labeling client: File types supported by the Azure Information Protection unified labeling client
- Info: Logs only the files that were successfully labeled by the scanner, or would be labeled when the scanner is in discovery mode.
- Error: Logs only the files that the scanner attempted to label but could not. For example, a file was in use, or the scanner service did not have write access to the file.
- Off: Disables reporting, which results in the best performance for the scanner.
The local Windows Applications and Services event log, Azure Information Protection contains additional logging information. The events include the start and end times for each scanning cycle, when a scanned file has a label applied, and when protection is applied or removed. For more information, see Event log IDs and descriptions for the scanner.
|Accepted values:||Off, Debug, Info, Error|
|Accept pipeline input:||False|
|Accept wildcard characters:||False|