mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-06-18 03:43:39 +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.
|
||||
|
||||
```ps1
|
||||
Enable-Mailbox 'HUB01@contoso.com' -RemoteRoutingAddress 'HUB01@contoso.com' -Room
|
||||
```
|
||||
```ps1
|
||||
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.
|
||||
|
||||
@ -45,13 +45,13 @@ Use this procedure if you use Exchange on-prem.
|
||||
|
||||
The next steps will be run on your Office 365 tenant.
|
||||
|
||||
```ps1
|
||||
Set-ExecutionPolicy Unrestricted
|
||||
$org='contoso.com'
|
||||
$cred=Get-Credential $admin@$org
|
||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://outlook.office365.com/ps1-liveid/' -Credential $cred -Authentication Basic -AllowRedirection
|
||||
Import-PSSession $sess
|
||||
```
|
||||
```ps1
|
||||
Set-ExecutionPolicy Unrestricted
|
||||
$org='contoso.com'
|
||||
$cred=Get-Credential $admin@$org
|
||||
$sess= New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri 'https://outlook.office365.com/ps1-liveid/' -Credential $cred -Authentication Basic -AllowRedirection
|
||||
Import-PSSession $sess
|
||||
```
|
||||
|
||||
5. Create a new Exchange ActiveSync policy, or use a compatible existing policy.
|
||||
|
||||
|
Reference in New Issue
Block a user