Skip to content

Commit c4dc240

Browse files
authored
Merge pull request MicrosoftDocs#9263 from MicrosoftDocs/chrisda
Update New-DlpComplianceRule.md
2 parents 8af8327 + 22036cd commit c4dc240

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

exchange/exchange-ps/exchange/New-DlpComplianceRule.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,53 @@ New-DlpComplianceRule -Name "SocialSecurityRule" -Policy "USFinancialChecks" -Co
164164

165165
This example create a new DLP compliance rule named "SocialSecurityRule" that is assigned to the "USFinancialChecks" policy. The rule checks for social security numbers and blocks access if it finds them.
166166

167+
### Example 2
168+
```powershell
169+
$contains_complex_types = @{
170+
operator = "And"
171+
groups = @(
172+
@{
173+
operator = "Or"
174+
name = "PII Identifiers"
175+
sensitivetypes = @(
176+
@{
177+
name = "Drug Enforcement Agency (DEA) Number"
178+
maxconfidence = 100
179+
minconfidence = 75
180+
mincount = 1
181+
maxcount = -1
182+
}
183+
)
184+
}
185+
@{
186+
operator = "Or"
187+
name = "Medical Terms"
188+
sensitivetypes = @(
189+
@{
190+
name = "International Classification of Diseases (ICD-9-CM)"
191+
maxconfidence = 100
192+
minconfidence = 75
193+
mincount = 1
194+
maxcount = -1
195+
}
196+
@{
197+
name = "International Classification of Diseases (ICD-10-CM)"
198+
maxconfidence = 100
199+
minconfidence = 75
200+
mincount = 1
201+
maxcount = -1
202+
}
203+
)
204+
}
205+
206+
)
207+
}
208+
209+
New-DLPComplianceRule -Name "Contoso Medical Information" -Policy "Contoso Medical Checks" -ContentContainsSensitiveInformation $contains_complex_types
210+
```
211+
212+
This example create a new DLP compliance rule named "Contoso Medical Information" that is assigned to the "Contoso Medical Checks" policy. The rule uses advanced syntax to search for the specified content.
213+
167214
## PARAMETERS
168215

169216
### -Name
@@ -441,6 +488,8 @@ This parameter uses the basic syntax `@(@{Name="SensitiveInformationType1";[minC
441488

442489
Use the Get-DLPSensitiveInformationType cmdlet to list the sensitive information types for your organization. For more information on sensitive information types, see [What the sensitive information types in Exchange look for](https://docs.microsoft.com/exchange/what-the-sensitive-information-types-in-exchange-look-for-exchange-online-help).
443490

491+
For an example of advanced syntax, see Example 2 in this topic.
492+
444493
```yaml
445494
Type: PswsHashtable[]
446495
Parameter Sets: (All)

0 commit comments

Comments
 (0)