//// connect to exchange online powershell ///// Install exchange online management 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 RemoteSignedInstall-Module -Name ExchangeOnlineManagementImport-Module ExchangeOnlineManagementGet-Module ExchangeOnlineManagementUpdate-Module -Name ExchangeOnlineManagement Connect-ExchangeOnline -UserPrincipalName sin@domain.com -DelegatedOrganization youdomain.onmicrosoft.com /////// get retentionpolicy info /////// Get-Mailbox | FL RetentionPolicy /// get retentionholdeenable /////////// make it is set to false ////Get-Mailbox “sin@domain.com” |
Read More