Unable to connect to Exchange Online Powershell

Micael Ondoa 20 Reputation points
2023-10-27T14:39:42.4666667+00:00

Hello,

I am unable to login to Exchange Online Powershell using the following steps. I am a global admin and the Powershell is opened in elevated mode.

I enter the code below

Connect-ExchangeOnline -UserPrincipalName <mylogin>

Then the login opens and I select my user

User's image

It loads for some time then closes and I get the following message in Powershell


This V3 EXO PowerShell module contains new REST API backed Exchange Online cmdlets which doesn't require WinRM for Client-Server communication. You can now run these cmdlets after turning off WinRM Basic Auth in your client machine thus making it more secure. Unlike the EXO* prefixed cmdlets, the cmdlets in this module support full functional parity with the RPS (V1) cmdlets. V3 cmdlets in the downloaded module are resilient to transient failures, handling retries and throttling errors inherently. REST backed EOP and SCC cmdlets are also available in the V3 module. Similar to EXO, the cmdlets can be run without WinRM basic auth enabled. For more information check https://aka.ms/exov3-module

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
Windows for business Windows Server User experience PowerShell
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-10-27T16:21:05.8866667+00:00

    That's pretty much what should happen. Have you tried running any cmdlet, say Get-Mailbox?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.