Search This Blog

Thursday, May 19, 2022

powershell connect to exchange online --- install powershell 7 , install exchange online v2 module

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