MS365 | Fix "LogonDenied" error on IMAP & OAuth - PowerShell Fix

You know the game: The deactivation of Basic Authentication forces us all to act. Your DMS, ticket system or archive should finally access Exchange Online via OAuth2.In Azure, eve…