This cmdlet works for MFA or non-MFA enabled accounts. Use the Connect-ExchangeOnline cmdlet in the Exchange Online PowerShell module to connect to Exchange Online PowerShell or standalone Exchange Online Protection PowerShell using modern authentication. For more information, see About the Exchange Online PowerShell module. This cmdlet is available only in the Exchange Online PowerShell module.