Skip to content

Commit 789b717

Browse files
committed
Disconnect-ExchangeOnline now works on Connect-IPPSSession
1 parent c821d9f commit 789b717

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Exchange Online PowerShell V2 module (abbreviated as the EXO V2 module) uses
2121

2222
**This topic contains instructions for how to connect to Exchange Online Protection PowerShell using the EXO V2 module with or without using MFA.**
2323

24-
To use the older, less secure remote PowerShell connection instructions that [will eventually be deprecated](https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-july-update/ba-p/1530163), see [Bssic auth - Connect to Exchange Online Protection PowerShell](basic-auth-connect-to-eop-powershell.md).
24+
To use the older, less secure remote PowerShell connection instructions that [will eventually be deprecated](https://techcommunity.microsoft.com/t5/exchange-team-blog/basic-authentication-and-exchange-online-july-update/ba-p/1530163), see [Basic auth - Connect to Exchange Online Protection PowerShell](basic-auth-connect-to-eop-powershell.md).
2525

2626
## What do you need to know before you begin?
2727

@@ -71,7 +71,7 @@ For detailed syntax and parameter information, see [Connect-IPPSSession](https:/
7171
> 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.
7272
7373
```powershell
74-
Get-PSSession | Remove-PSSession
74+
Disconnect-ExchangeOnline
7575
```
7676

7777
## Connect to Exchange Online Protection PowerShell without using MFA
@@ -118,7 +118,7 @@ For detailed syntax and parameter information, see [Connect-IPPSSession](https:/
118118
> 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.
119119
120120
```powershell
121-
Get-PSSession | Remove-PSSession
121+
Disconnect-ExchangeOnline
122122
```
123123

124124
## How do you know this worked?

exchange/exchange-ps/exchange/Disconnect-ExchangeOnline.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ monikerRange: "exchonline-ps"
1717
## SYNOPSIS
1818
This cmdlet is available only in the Exchange Online PowerShell V2 module. For more information, see [Connect to Exchange Online PowerShell](https://docs.microsoft.com/powershell/exchange/connect-to-exchange-online-powershell).
1919

20-
Use the Disconnect-ExchangeOnline cmdlet in the Exchange Online PowerShell V2 module to disconnect from an Exchange Online organization.
20+
Use the Disconnect-ExchangeOnline cmdlet in the Exchange Online PowerShell V2 module to disconnect from remote PowerShell sessions that you opened using the Connect-ExchangeOnline or Connect-IPPSSession cmdlets.
2121

2222
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://docs.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).
2323

@@ -28,25 +28,25 @@ Disconnect-ExchangeOnline [-Confirm] [-WhatIf] [<CommonParameters>]
2828
```
2929

3030
## DESCRIPTION
31-
The Connect-ExchangeOnline cmdlet establishes a connection to the Exchage Online organization of the logged-in admin user. This cmdlet is the counterpart to Connect-ExchangeOnline.
31+
The Connect-ExchangeOnline cmdlet establishes a connection to the Exchange Online organization of the logged-in admin user. This cmdlet is the counterpart to Connect-ExchangeOnline.
3232

33-
Disconnect-ExchangeOnline closes any active session and clears cache. After a successful disconnect, you can't run any of the V2 cmdlets or older remote PowerShell cmdlets.
33+
Disconnect-ExchangeOnline closes any active session and clears the cache. After a successful disconnect, you can't run any of the V2 cmdlets or older remote PowerShell cmdlets.
3434

3535
## EXAMPLES
3636

3737
### Example 1
3838
```powershell
3939
Disconnect-ExchangeOnline
4040
```
41-
This example asks for confirmation before disconnecting the current PowerShell session with Exchange Online.
4241

42+
This example asks for confirmation before disconnecting the current PowerShell session with Exchange Online.
4343

4444
### Example 2
4545
```powershell
4646
Disconnect-ExchangeOnline -Confirm:$false
4747
```
48-
This example disconnects the current PowerShell session with Exchange Online silently and without a confirmation prompt.
4948

49+
This example disconnects the current PowerShell session with Exchange Online silently and without a confirmation prompt.
5050

5151
## PARAMETERS
5252

0 commit comments

Comments
 (0)