Quickstart
To use Exchange Online PowerShell, you need to install the ExchangeOnlineManagement module.
Search for “PowerShell” in the Start menu, right-click, choose Run as Administrator. Some Windows environments block PowerShell scripts, including module installs; if so, run:
Set-ExecutionPolicy RemoteSigned
Close and reopen PowerShell, then install the module:
Install-Module -Name ExchangeOnlineManagement