Skip to content

Chrisda to Main #12723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Connect to Exchange Online PowerShell
author: chrisda
manager: deniseb
ms.date: 8/21/2023
ms.date: 05/07/2025
ms.audience: Admin
audience: Admin
ms.topic: article
Expand Down Expand Up @@ -61,15 +61,13 @@ Import-Module ExchangeOnlineManagement
The command that you need to run uses the following syntax:

```powershell
Connect-ExchangeOnline -UserPrincipalName <UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-DelegatedOrganization <String>] [-SkipLoadingFormatData]
Connect-ExchangeOnline -UserPrincipalName <UPN> [-ExchangeEnvironmentName <Value>] [-ShowBanner:$false] [-LoadCmdletHelp] [-DelegatedOrganization <String>] [-SkipLoadingFormatData] [-DisableWAM]
```

For detailed syntax and parameter information, see [Connect-ExchangeOnline](/powershell/module/exchange/connect-exchangeonline).

- _\<UPN\>_ is your account in user principal name format (for example, `navin@contoso.onmicrosoft.com`).

- With the EXO V3 module (v3.0.0 or later) and the [demise of Basic authentication (remote PowerShell) connections to Exchange Online](https://techcommunity.microsoft.com/t5/exchange-team-blog/deprecation-of-remote-powershell-rps-protocol-in-security-and/ba-p/3815432), you're using REST API cmdlets only. For more information, see [REST API connections in the EXO V3 module](exchange-online-powershell-v2.md#rest-api-connections-in-the-exo-v3-module).

- When you use the _ExchangeEnvironmentName_ parameter, you don't need use the _ConnectionUri_ or _AzureADAuthorizationEndPointUrl_ parameters. Common values for the _ExchangeEnvironmentName_ parameter are described in the following table:

|Environment|Value|
Expand All @@ -82,6 +80,8 @@ For detailed syntax and parameter information, see [Connect-ExchangeOnline](/pow

<sup>\*</sup> The required value `O365Default` is also the default value, so you don't need to use the _ExchangeEnvironmentName_ parameter in Microsoft 365 or Microsoft 365 GCC environments.

- In version 3.7.0 or later, command line help for Exchange Online PowerShell cmdlets is no longer loaded by default. Use the _LoadCmdletHelp_ switch so help for Exchange Online PowerShell cmdlets is available to the **Get-Help** cmdlet.

- The _DelegatedOrganization_ parameter specifies the customer organization that you want to manage as an authorized Microsoft Partner. For more information, see the [connection examples later in this article](#connect-to-exchange-online-powershell-in-customer-organizations).

- Depending on the nature of your organization, you might be able to omit the _UserPrincipalName_ parameter in the connection command. Instead, you enter the username and password or select stored credentials after you run the **Connect-ExchangeOnline** command. If it doesn't work, then you need to use the _UserPrincipalName_ parameter.
Expand All @@ -92,6 +92,8 @@ For detailed syntax and parameter information, see [Connect-ExchangeOnline](/pow

- Using the module in PowerShell 7 requires version 2.0.4 or later.

- In version 3.7.2 or later, the _DisableWAM_ switch is available to disable Web Account Manager (WAM) if you get WAM-related connection errors.

The connection examples in the following sections use modern authentication, and are incapable of using Basic authentication.

### Connect to Exchange Online PowerShell with an interactive login prompt
Expand Down
2 changes: 1 addition & 1 deletion exchange/docs-conceptual/connect-to-scc-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Connect to Security & Compliance PowerShell
author: chrisda
manager: deniseb
ms.date: 12/12/2023
ms.date: 05/07/2025
ms.audience: Admin
audience: Admin
ms.topic: article
Expand Down
6 changes: 3 additions & 3 deletions exchange/docs-conceptual/exchange-online-powershell-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: About the Exchange Online PowerShell V3 module
ms.author: chrisda
author: chrisda
manager: deniseb
ms.date: 03/26/2025
ms.date: 05/07/2025
ms.audience: Admin
audience: Admin
ms.topic: article
Expand Down Expand Up @@ -615,7 +615,7 @@ Unless otherwise noted, the current release of the Exchange Online PowerShell mo

#### Version 3.7.2

- New _DisableWAM_ parameter on **Connect-ExchangeOnline** that disables Web Account Manager (WAM).
- The _DisableWAM_ switch is available on the **Connect-ExchangeOnline** cmdlet to disable Web Account Manager (WAM) if you get WAM-related connection errors.

### Previous releases

Expand All @@ -630,7 +630,7 @@ Unless otherwise noted, the current release of the Exchange Online PowerShell mo
#### Version 3.7.0

- Integrated Web Account Manager (WAM) in authentication flows to enhance security.
- Command line help for Exchange Online PowerShell cmdlets is no longer loaded by default. Use the _LoadCmdletHelp_ parameter in the **Connect-ExchangeOnline** command so help for Exchange Online PowerShell cmdlets is available to the **Get-Help** cmdlet.
- Command line help for Exchange Online PowerShell cmdlets is no longer loaded by default. Use the _LoadCmdletHelp_ switch in the **Connect-ExchangeOnline** command so help for Exchange Online PowerShell cmdlets is available to the **Get-Help** cmdlet.
- Fixed connection issues with app only authentication in Security & Compliance PowerShell.

#### Version 3.6.0
Expand Down
2 changes: 1 addition & 1 deletion exchange/docs-conceptual/exchange-online-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "Exchange Online PowerShell"
ms.author: chrisda
author: chrisda
manager: deniseb
ms.date: 9/1/2023
ms.date: 05/07/2025
ms.audience: Admin
audience: Admin
ms.topic: article
Expand Down