Dear Experts,
After following this instruction from Microsoft to how to install and use Exchange Online Powershell with MFA:
https://docs.microsoft.com/en-us/powershell/exchange/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell?view=exchange-ps
When I try the first command, which is:
Connect-EXOPSSession -UserPrincipalName yballan@yyyy.org
I receive the following error message:
Import-Module : The specified module 'Microsoft.Exchange.Manage
ment.ExoPo
wershellMo
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
ocal\Apps\
2.0\2TY3WB
GZ.L3B\H6W
6HB8Z.OK0
I am not sure why the module cannot be found.
I have deleted the C:\Users\yballan\AppData\L
ocal\Apps\
2.0 folder and the short cut to Online Exchange Powershell and redownloaded and reinstalled several times, but I still cannot get this working.
Please advise.
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.