Upravit

Sdílet prostřednictvím


Get-DlpComplianceRule

This cmdlet is available only in Security & Compliance PowerShell. For more information, see Security & Compliance PowerShell.

Use the Get-DlpComplianceRule to view data loss prevention (DLP) rules in the Microsoft Purview compliance portal. DLP rules identify and protect sensitive information.

For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

Syntax

Get-DlpComplianceRule
   [[-Identity] <ComplianceRuleIdParameter>]
   [-IncludeExecutionRuleGuids <Boolean>]
   [-Policy <PolicyIdParameter>]
   [<CommonParameters>]

Description

To use this cmdlet in Security & Compliance PowerShell, you need to be assigned permissions. For more information, see Permissions in the Microsoft Purview compliance portal.

Examples

Example 1

Get-DlpComplianceRule

This example displays summary information for all DLP rules in the Microsoft Purview compliance portal.

Example 2

Get-DlpComplianceRule -Identity "PII SS# Custom" | Format-List

This example displays detailed information for the DLP rule named "PII SS# Custom".

Example 3

Get-DlpComplianceRule -Policy "PII Limited"

This example lists all the rules included in the DLP compliance policy named "PII Limited".

Parameters

-Identity

The Identity parameter specifies the DLP rule that you want to view. You can use any value that uniquely identifies the rule. For example:

  • Name
  • Distinguished name (DN)
  • GUID
  • Id
Type:ComplianceRuleIdParameter
Position:1
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False
Applies to:Security & Compliance

-IncludeExecutionRuleGuids

{{ Fill IncludeExecutionRuleGuids Description }}

Type:Boolean
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Security & Compliance

-Policy

The Policy parameter specifies the DLP policy that contains the rules. Using this parameter returns all rules that are assigned to the specified policy. Valid input for this parameter is any value that uniquely identifies the policy. For example

  • Name
  • Distinguished name (DN)
  • GUID
  • Id
Type:PolicyIdParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Security & Compliance