mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-18 11:53:37 +00:00
Fixed code syntax
This commit is contained in:
@ -35,9 +35,9 @@ Use this procedure if you use Exchange on-prem.
|
|||||||
|
|
||||||
Open your on-prem Exchange Management Shell with administrator permissions, and run this cmdlet.
|
Open your on-prem Exchange Management Shell with administrator permissions, and run this cmdlet.
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
Enable-Mailbox 'HUB01@contoso.com' -RemoteRoutingAddress 'HUB01@contoso.com' -Room
|
Enable-Mailbox 'HUB01@contoso.com' -RemoteRoutingAddress 'HUB01@contoso.com' -Room
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Connect to Microsoft Exchange Online and set some properties for the account in Office 365.
|
5. Connect to Microsoft Exchange Online and set some properties for the account in Office 365.
|
||||||
|
|
||||||
@ -45,13 +45,13 @@ Use this procedure if you use Exchange on-prem.
|
|||||||
|
|
||||||
The next steps will be run on your Office 365 tenant.
|
The next steps will be run on your Office 365 tenant.
|
||||||
|
|
||||||
```ps1
|
```ps1
|
||||||
Set-ExecutionPolicy Unrestricted
|
Set-ExecutionPolicy Unrestricted
|
||||||
$org='contoso.com'
|
$org='contoso.com'
|
||||||
$cred=Get-Credential $admin@$org
|
$cred=Get-Credential $admin@$org
|
||||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://outlook.office365.com/ps1-liveid/' -Credential $cred -Authentication Basic -AllowRedirection
|
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://outlook.office365.com/ps1-liveid/' -Credential $cred -Authentication Basic -AllowRedirection
|
||||||
Import-PSSession $sess
|
Import-PSSession $sess
|
||||||
```
|
```
|
||||||
|
|
||||||
5. Create a new Exchange ActiveSync policy, or use a compatible existing policy.
|
5. Create a new Exchange ActiveSync policy, or use a compatible existing policy.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user