Get-DlpCompliancePolicy
此 cmdlet 仅在安全性 & 合规性 PowerShell 中可用。 有关详细信息,请参阅 安全性 & 合规性 PowerShell。
使用Get-DlpCompliancePolicy在Microsoft Purview 合规门户中查看数据丢失防护 (DLP) 策略。
有关以下语法部分的参数设置的详细信息,请参阅 Exchange cmdlet 语法。
语法
Get-DlpCompliancePolicy
[[-Identity] <PolicyIdParameter>]
[-ForceValidate <Boolean>]
[-DistributionDetail]
[-IncludeExtendedProperties <Boolean>]
[-IncludeRulesMetadata <Boolean>]
[-IRMUserRiskConfiguredAnyRule]
[-Summary]
[<CommonParameters>]
说明
若要在安全性 & 合规性 PowerShell 中使用此 cmdlet,需要分配权限。 有关详细信息,请参阅 Microsoft Purview 合规门户中的权限。
示例
示例 1
Get-DlpCompliancePolicy
此示例显示Microsoft Purview 合规门户中所有 DLP 策略的摘要信息。
示例 2
Get-DlpCompliancePolicy -Identity "PII Limited" | Format-List
本示例显示名为“受限制的 PII”的 DLP 策略的详细信息。
示例 3
Get-DlpCompliancePolicy -Identity "PII Limited" -DistributionDetail | Format-List DistributionStatus
此示例显示 DLP 策略的分发详细信息。
示例 4
$dlp = Get-DlpCompliancePolicy; ForEach ($d in $dlp){Get-DlpCompliancePolicy -DistributionDetail $d.name | Format-List Name,DistributionStatus}
此示例获取环境中的所有 DLP 策略,并显示每个策略的分发状态。
参数
-DistributionDetail
DistributionDetail 开关返回 DistributionResults 属性中的详细策略分发信息。 不必为此开关指定值。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-ForceValidate
{{ Fill ForceValidate Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-Identity
Identity 参数指定要查看的 DLP 策略。 可以使用任何能够唯一标识该策略的值。 例如:
- 名称
- 可分辨名称 (DN)
- GUID
- Id
Type: | PolicyIdParameter |
Position: | 1 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-IncludeExtendedProperties
{{ Fill IncludeExtendedProperties Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-IncludeRulesMetadata
{{ Fill IncludeRulesMetadata Description }}
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-IRMUserRiskConfiguredAnyRule
{{ Fill IRMUserRiskConfiguredAnyRule Description }}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |
-Summary
{{ 填写摘要说明 }}
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Security & Compliance |