Install exchange online management Install-Module -Name ExchangeOnlineManagement——————————————-Import-Module ExchangeOnlineManagementSet-ExecutionPolicy RemoteSigned$UserCredential = Get-Credential $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection ////////////////////////////////////////////////////////////////////////////Import-PSSession $Session -DisableNameChecking More Details: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-protection-powershell?view=exchange-ps Connect to exchange online powershell with MFA Set-ExecutionPolicy RemoteSigned$UserCredential = Get-CredentialImport-Module ExchangeOnlineManagement; Get-Module ExchangeOnlineManagementUpdate-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName sin@pheaktra.com -DelegatedOrganization vmotion363.onmicrosoft.com Start Archive Folder ——————————————Get-Mailbox student@vmotion.com.kh
Read More