Set-ExecutionPolicy RemoteSigned
Install-Module PowershellGet -Force
Update-Module PowershellGet
ExchangeOnlineManagement
Install-Module -Name ExchangeOnlineManagement -Force -Scope AllUsers
Set-ItemProperty -Path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319' -Name 'SchUseStrongCrypto' -Type DWord -Value '1'
Import-Module ExchangeOnlineManagement
Get-Module ExchangeOnlineManagement
Connect-ExchangeOnline -Credential (Get-Credential) -ShowBanner:$False
Get-EXOMailbox | Format-table UserPrincipalName,DisplayName
Disconnect-ExchangeOnline -Confirm:$False