download powershell 7 msi and install
then
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.5
Set-ExecutionPolicy RemoteSigned
Import-Module ExchangeOnlineManagement
$Credential=Get-Credential
Connect-ExchangeOnline –Credential $Credential
get-mailbox
Disconnect-ExchangeOnline
No comments:
Post a Comment