Dela via


Get-ScannerRepository

Gets repository data for a Microsoft Purview Information Protection scanner content scan job.

Syntax

Default (Standard)

Get-ScannerRepository
    [-Path <String>]

Description

Gets a list of data repositories that the content scan job is configured to scan.

For more information about content scan jobs, see the Microsoft Purview Information Protection scanner documentation.

Exempel

Example 1 Get details for all repositories for the content scan job

PS C:\WINDOWS\system32> Get-ScannerRepository

Path: c:\repoToScan1
OverrideContentScanJob: Off
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

Path: c:\repoToScan2
OverrideContentScanJob: On
EnableDlp: Off
Enforce: Off
LabelFilesByContent: On
RelabelFiles: On
AllowLabelDowngrade: On
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

This example shows a response that includes all repositories configured for the content scan job.

Example 2 Get details for a specific repository in the content scan job

PS C:\WINDOWS\system32> Get-ScannerRepository -Path 'c:\repoToScan1'

Path: c:\repoToScan1
OverrideContentScanJob: Off
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

This example shows a response that includes all repositories configured for the content scan job.

Parametrar

-Path

Defines the path to a specific repository you want to return data for.

This parameter value must be the exact path or path pattern as is defined in the content scan job.

However, this parameter also supports the asterisk * and question mark ? wildcards:

For example:

  • Entering -Path c:\repo? returns details for any repositories named repo, with an additional single-character suffix, such as c:\repo1.

  • Entering -Path c:\repo* returns details for any repositories named repo with any additional characters as a suffix, such as c:\repoToScan.

Parameteregenskaper

Typ:String
Standardvärde:None
Stöder jokertecken:True
DontShow:False

Parameteruppsättningar

(All)
Position:Named
Obligatorisk:False
Värde från pipeline:False
Värde från pipeline efter egenskapsnamn:False
Värde från återstående argument:False

Indata

None

Utdata

System.Object