bwya77/O365-Admin-Center

Session Error

Opened this issue · 3 comments

I just reinstalled windows 10, and I'm getting the following error when I connect to exchange online:

Cannot validate arguemnt on parameter 'Session'. The argument is null. Please provide a valid value for the argument, and then try running the command again.

I ran:

Install-Module -Name AzureAD and Install-Module MSOnline, however I'm still experiencing the same issue. I'd love to continue using your tool, its amazing.

Getting the same issue on windows 10 Build 1803.

Also getting the same issue on Win 10 1803

Found the issue(IIn my case at least) I needed to enable 2FA and download the Hybrid module from EAC:

MFA requires two modules:

  • MSOnline
  • EXOPPSSession (downloaded from your tenant)
    Once you download and install the modules, enable MFA by going to Tools> 2FA > Enable 2FA
    It changes a reg key at HKEY_Current_User/Software/O365 Admin Center