Skip to content

Commit 97b4f5e

Browse files
committed
Update connect-to-exchange-online-powershell.md
Per Issue #3021
1 parent a604ea1 commit 97b4f5e

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

exchange/docs-conceptual/exchange-online/connect-to-exchange-online-powershell/connect-to-exchange-online-powershell.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
4747

4848
To require all PowerShell scripts that you download from the internet are signed by a trusted publisher, run the following command in an elevated Windows PowerShell window (a Windows PowerShell window you open by selecting **Run as administrator**):
4949

50-
```
51-
Set-ExecutionPolicy RemoteSigned
52-
```
50+
```
51+
Set-ExecutionPolicy RemoteSigned
52+
```
5353

5454
You need to configure this setting only once on your computer, not every time you connect.
5555

@@ -60,9 +60,10 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
6060

6161
1. On your local computer, open Windows PowerShell and run the following command.
6262

63-
```
64-
$UserCredential = Get-Credential
65-
```
63+
```
64+
$UserCredential = Get-Credential
65+
```
66+
6667
In the **Windows PowerShell Credential Request** dialog box, type your work or school account and password, and then click **OK**.
6768

6869
2. Run the following command.
@@ -71,23 +72,25 @@ Exchange Online PowerShell allows you to manage your Exchange Online settings fr
7172
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
7273
```
7374

74-
**Notes**:
75+
**Notes**:
7576

76-
- For Office 365 operated by 21Vianet, use the _ConnectionUri_ value: `https://partner.outlook.cn/PowerShell`
77+
- For Office 365 operated by 21Vianet, use the _ConnectionUri_ value: `https://partner.outlook.cn/PowerShell`
7778

78-
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
79+
- For Office 365 Germany, use the _ConnectionUri_ value: `https://outlook.office.de/powershell-liveid/`
7980

80-
- If you're behind a proxy server, run this command first: `$ProxyOptions = New-PSSessionOption -ProxyAccessType <Value>`, where the _ProxyAccessType_ value is `IEConfig`, `WinHttpConfig`, or `AutoDetect`.
81+
- For Office 365 Government Community Cloud High (GCC High), use the _ConnectionUri_ value: `https://ps.compliance.protection.office365.us/powershell-liveid/`
82+
83+
- If you're behind a proxy server, run this command first: `$ProxyOptions = New-PSSessionOption -ProxyAccessType <Value>`, where the _ProxyAccessType_ value is `IEConfig`, `WinHttpConfig`, or `AutoDetect`.
8184

82-
Then, add the following parameter and value to the end of the $Session = ... command: `-SessionOption $ProxyOptions`.
85+
Then, add the following parameter and value to the end of the $Session = ... command: `-SessionOption $ProxyOptions`.
8386

84-
For more information, see [New-PSSessionOption](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssessionoption).
87+
For more information, see [New-PSSessionOption](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/new-pssessionoption).
8588

8689
3. Run the following command.
8790

88-
```
89-
Import-PSSession $Session -DisableNameChecking
90-
```
91+
```
92+
Import-PSSession $Session -DisableNameChecking
93+
```
9194

9295
> [!NOTE]
9396
> Be sure to disconnect the remote PowerShell session when you're finished. If you close the Windows PowerShell window without disconnecting the session, you could use up all the remote PowerShell sessions available to you, and you'll need to wait for the sessions to expire. To disconnect the remote PowerShell session, run the following command.
@@ -108,7 +111,7 @@ If you receive errors, check the following requirements:
108111

109112
- The account you use to connect to Exchange Online must be enabled for remote PowerShell. For more information, see [Enable or disable access to Exchange Online PowerShell](../disable-access-to-exchange-online-powershell.md).
110113

111-
- TCP port 80 traffic needs to be open between your local computer and Office 365. It's probably open, but it's something to consider if your organization has a restrictive Internet access policy.
114+
- TCP port 80 traffic needs to be open between your local computer and Office 365. It's probably open, but it's something to consider if your organization has a restrictive internet access policy.
112115

113116
## See also
114117

@@ -124,5 +127,4 @@ The cmdlets that you use in this topic are Windows PowerShell cmdlets. For more
124127

125128
- [Set-ExecutionPolicy](https://go.microsoft.com/fwlink/p/?LinkId=389623)
126129

127-
For more information about managing Office 365, see [Manage Office 365](https://docs.microsoft.com/en-us/Office365/).
128-
130+
For more information about managing Office 365, see [Manage Office 365](https://docs.microsoft.com/Office365/).

0 commit comments

Comments
 (0)