Skip to content

Commit 9da6129

Browse files
committed
More Byte[] fixes
1 parent 0598974 commit 9da6129

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

exchange/exchange-ps/exchange/Import-RMSTrustedPublishingDomain.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
7676

7777
### Example 1
7878
```powershell
79-
$data = [System.IO.File]::ReadAllBytes('C:\My Documents\Contoso.xml')
80-
Import-RMSTrustedPublishingDomain -Name "Contoso TPD" -FileData $data -Password (ConvertTo-SecureString -String 'Pa$$word1' -AstPlainText -Force)-ExtranetLicensingUrl https://rms.contoso.com/_wmcs/licensing -IntranetLicensingUrl https://RMS01/_wmcs/licensing
79+
Import-RMSTrustedPublishingDomain -Name "Contoso TPD" -FileData ([System.IO.File]::ReadAllBytes('C:\My Documents\Contoso.xml')) -Password (ConvertTo-SecureString -String 'Pa$$word1' -AstPlainText -Force) -ExtranetLicensingUrl https://rms.contoso.com/_wmcs/licensing -IntranetLicensingUrl https://RMS01/_wmcs/licensing
8180
```
8281

8382
This example imports a TPD from an AD RMS server into a cloud-based organization. The TPD uses the following values:

exchange/exchange-ps/exchange/New-App.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
108108

109109
### Example 1
110110
```powershell
111-
$data = [System.IO.File]::ReadAllBytes('C:\Apps\FinanceTestApp.xml')
112-
New-App -FileData $data -ReadCount 0))
111+
New-App -FileData ([System.IO.File]::ReadAllBytes('C:\Apps\FinanceTestApp.xml'))
113112
```
114113

115114
This example installs the Finance Test app manifest file that has been copied to the local hard disk.

exchange/exchange-ps/exchange/New-Fingerprint.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,10 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
3838

3939
### Example 1
4040
```powershell
41-
$Patent_Template = $data = [System.IO.File]::ReadAllBytes('C:\My Documents\Contoso Patent Template.docx')
41+
$Patent_Template = [System.IO.File]::ReadAllBytes('C:\My Documents\Contoso Patent Template.docx')
4242
$Patent_Fingerprint = New-Fingerprint -FileData $Patent_Template -Description "Contoso Patent Template"
4343
```
4444

45-
A valid value for this parameter requires you to read the file to a byte-encoded object using the following syntax: `([System.IO.File]::ReadAllBytes('<Path>\<FileName>'))`. You can use this command as the parameter value, or you can write the output to a variable (`$data = [System.IO.File]::ReadAllBytes('<Path>\<FileName>')`) and use the variable as the parameter value (`$data`).
46-
47-
4845
This example creates a new document fingerprint based on the file C:\\My Documents\\Contoso Patent Template.docx. You store the new fingerprint as a variable so you can use it with the New-DataClassification cmdlet in the same PowerShell session.
4946

5047
## PARAMETERS

0 commit comments

Comments
 (0)