After following this instruction from Microsoft to how to install and use Exchange Online Powershell with MFA:
When I try the first command, which is:
Connect-EXOPSSession -UserPrincipalName email@example.com
I receive the following error message:
Import-Module : The specified module 'Microsoft.Exchange.Manage
dule.dll' was not loaded because no valid module file was found in any module directory.
I have verified that there are indeed folders and files in what follows the error message: C:\Users\yballan\AppData\L
I am not sure why the module cannot be found.
I have deleted the C:\Users\yballan\AppData\L
2.0 folder and the short cut to Online Exchange Powershell and redownloaded and reinstalled several times, but I still cannot get this working.
Did you go to your Exchange Admin Center for your site and download and install the Exchange online Module?
In Internet Explorer or Edge, open the Exchange admin center (EAC) for your Exchange Online organization (Google Chrome or Mozilla Firefox won't work). For instructions, see Exchange Admin Center in Exchange Online.
In the EAC, go to Hybrid > Setup and click the appropriate Configure button to download the Exchange Online Remote PowerShell Module for multi-factor authentication.