共用方式為


Get-ScannerContentScan

取得 Microsoft Purview 資訊保護 掃描器內容掃描作業的詳細數據。

Syntax

Get-ScannerContentScan []

Description

傳回針對內容掃描作業所設定之所有參數的完整清單。

如需內容掃描作業的詳細資訊,請參閱 Microsoft Purview 資訊保護 掃描器

範例

範例 1 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

此範例示範透過PowerShell設定內容掃描作業時的範例命令和回應。

範例 2 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

此範例示範藉由匯入檔案或使用 Microsoft Purview 合規性入口網站 來設定內容掃描作業時的範例命令和回應。 在此情況下,個別的內容掃描作業參數不適用,而且不會傳回值。

輸入

None

輸出

System.Object