Skip to content

Commit c4acfdf

Browse files
authored
Merge pull request #11633 from Shubhankar-Nath/patch-1
Update Set-DlpComplianceRule.md
2 parents aa7f236 + 445939a commit c4acfdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exchange/exchange-ps/exchange/Set-DlpComplianceRule.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ Contents of the file named C:\Data\Sensitive Type.txt:
238238
}
239239
240240
$data = Get-Content -Path "C:\Data\Sensitive Type.txt" -ReadCount 0
241-
Set-DLPComplianceRule -Identity "Contoso Rule 1" -AdvancedRule $data
241+
$AdvancedRuleString = $data | Out-string
242+
Set-DLPComplianceRule -Identity "Contoso Rule 1" -AdvancedRule $AdvancedRuleString
242243
```
243244

244245
This example uses the AdvancedRule parameter to read the following complex condition from a file: "Content contains sensitive information: "Credit card number OR Highly confidential" AND (NOT (Sender is a member of "Jane's Team" OR Recipient is "[email protected]")).

0 commit comments

Comments
 (0)