We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0005b00 commit 882cb45Copy full SHA for 882cb45
exchange/exchange-ps/exchange/New-DlpComplianceRule.md
@@ -285,7 +285,7 @@ Contents of the file named C:\Data\Sensitive Type.txt:
285
}
286
287
288
-$data = Get-Content -Path "C:\Data\Sensitive Type.txt" -ReadCount 0
+$data = Get-Content -Path "C:\Data\Sensitive Type.txt" -ReadCount 0 -encoding Byte
289
$string = [System.Text.Encoding]::UTF8.GetString($data)
290
New-DLPComplianceRule -Name "Contoso Rule 1" -Policy "Contoso Policy 1" -AdvancedRule $string -NotifyUser
291
```
0 commit comments