Get-AIPScannerRepository
Gets repository data for an Azure Information Protection content scan job.
Syntax
Get-AIPScannerRepository
[-Path <String>]
[<CommonParameters>]
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 Azure Information Protection on-premises scanner documentation.
Examples
Example 1 Get details for all repositories for the content scan job
PS C:\WINDOWS\system32> Get-AIPScannerRepository
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-AIPScannerRepository -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 the a response that includes all repositories configured for the content scan job.
Parameters
-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 ***** and ? 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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
Inputs
None
Outputs
System.Object