Skip to content

Commit 882cb45

Browse files
authored
Update New-DlpComplianceRule.md
1 parent 0005b00 commit 882cb45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ Contents of the file named C:\Data\Sensitive Type.txt:
285285
}
286286
}
287287
288-
$data = Get-Content -Path "C:\Data\Sensitive Type.txt" -ReadCount 0
288+
$data = Get-Content -Path "C:\Data\Sensitive Type.txt" -ReadCount 0 -encoding Byte
289289
$string = [System.Text.Encoding]::UTF8.GetString($data)
290290
New-DLPComplianceRule -Name "Contoso Rule 1" -Policy "Contoso Policy 1" -AdvancedRule $string -NotifyUser
291291
```

0 commit comments

Comments
 (0)