troubleshooting Question

Cannot connect using Connect-EXOPSSession

Avatar of yballan
yballanFlag for United States of America asked on
PowershellExchange* mfa
10 Comments1 Solution960 ViewsLast Modified:
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.Management.ExoPowershellModule.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\Local\Apps\2.0\2TY3WBGZ.L3B\H6W6HB8Z.OK0

I am not sure why the module cannot be found.  
I have deleted the C:\Users\yballan\AppData\Local\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.
ASKER CERTIFIED SOLUTION
Jian An Lim
Solutions Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Top Expert 2016

The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.

Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros