# Install Exchange Online PowerShell Module ^[[About the Exchange Online PowerShell V3 module | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#install-the-exchange-online-powershell-module)]
1. Set the PowerShell execution policy to RemoteSigned ^[https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps#set-the-powershell-execution-policy-to-remotesigned]
```PowerShell
Set-ExecutionPolicy RemoteSigned
```
2. Install or update the PowerShellGet module.^[https://learn.microsoft.com/en-us/powershell/gallery/powershellget/install-powershellget?view=powershellget-2.x#install-the-latest-stable-release]
```PowerShell
Install-Module PowerShellGet -Force -AllowClobber
```
3. Install the ExchangeOnlineManagement module
```PowerShell
Install-Module -Name ExchangeOnlineManagement
```
# Connect to Exchange Online ^[[Connect-ExchangeOnline (ExchangePowerShell) | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/module/exchange/connect-exchangeonline?view=exchange-ps)]
```PowerShell
Connect-ExchangeOnline [[-DelegatedOrganization] <String>] [[-UserPrincialName] <String>]
```
When using [[Modern Authentication]] and [[Multi Factor Authentication (MFA)]] define your username with the `-UserPrincipalName` flag and it will open a window for you to complete authentication.
# Organization Dehydration (Enable-OrganizationCustomization) ^[[Enable-OrganizationCustomization (ExchangePowerShell) | Microsoft Learn](https://learn.microsoft.com/en-us/powershell/module/exchange/enable-organizationcustomization?view=exchange-ps)]
In the Microsoft datacenters, certain objects are consolidated to save space. When you use [[Exchange Online PowerShell]] or the Exchange admin center to modify one of these objects for the first time, you may encounter an error message that tells you to run the Enable-OrganizationCustomization cmdlet.
```PowerShell
Enable-OrganizationCustomization
```