Get-ScannerContentScan
Gets details about a Microsoft Purview Information Protection scanner content scan job.
Syntax
Get-ScannerContentScan []
Description
Returns a full list of all the parameters configured for the content scan job.
For more information about content scan jobs, see the Microsoft Purview Information Protection scanner.
Examples
Example 1 Content scan job settings defined by PowerShell
PS C:\WINDOWS\system32> Get-ScannerContentScan
Schedule : Manual
DiscoverInformationTypes: All
RecommendedAsAutomatic : False
EnableDlp : Off
Enforce : On
LabelFilesByContent : On
RelabelFiles : Off
AllowLabelDowngrade : Off
EnforceDefaultLabel : Off
DefaultLabelType : PolicyDefault
DefaultLabelId :
DefaultOwner : Scanner
RepositoryOwner :
PreserveFileDetails : On
IncludeFileTypes :
ExcludeFileTypes : .lnk,.exe.,.com,.cmd,.bat,.dll,.ini,.sca,.drm,.sys,.cpl,.inf,.drv,.dat,.tmp,.msp,.msi,.pdb,.jar,.ocx,.rtf,.rar,.msg
Repositories:
c:\repoToScan1
c:\repoToScan2
This example shows a sample command and response when the content scan job was configured via PowerShell.
Example 2 Content scan job settings defined by PowerShell
PS C:\WINDOWS\system32> Get-ScannerContentScan
Schedule : Manual
DiscoverInformationTypes: PolicyOnly
RecommendedAsAutomatic : False
EnableDlp :
Enforce :
LabelFilesByContent :
RelabelFiles :
AllowLabelDowngrade :
EnforceDefaultLabel :
DefaultLabelType :
DefaultLabelId :
DefaultOwner :
RepositoryOwner :
PreserveFileDetails :
IncludeFileTypes :
ExcludeFileTypes :
Repositories:
c:\repoToScan1
This example shows a sample command and response when the content scan job was configured by importing a file, or using the Microsoft Purview compliance portal. In this case, the individual content scan job parameters aren't applicable, and don't return values.
Inputs
None
Outputs
System.Object