共用方式為


Get-ScannerContentScan

獲取有關 Microsoft Purview 資訊保護掃描程式內容掃描作業的詳細資訊。

語法

Default (預設值)

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