Cannot connect to Exchange online with Powershell

MartinArsovski-9283 21 Reputation points
2021-01-27T11:38:37.503+00:00

Hello,

A colleague of mine is trying to connect to Exchange online and is getting an error below. First it was with the v1 module then he installed v2 and the same issue. Strange is that the error is not shown correctly . He says his password is working.

60982-inkedmicrosoftteams-image-3-li.jpg

Anyone has any tips what to check?

Exchange Online
Exchange Online
A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.
Microsoft 365 and Office | Office Online Server
Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
{count} votes

3 answers

Sort by: Most helpful
  1. Vasil Michev 123.6K Reputation points MVP Volunteer Moderator
    2021-01-27T12:19:53.603+00:00

    You can enable logging and get a more detailed error message there:

    Connect-ExchangeOnline -EnableErrorReporting -LogDirectoryPath <Path to store log file> -LogLevel All
    
    1 person found this answer helpful.

  2. Liakis Ioannis 0 Reputation points
    2023-09-08T11:15:46.65+00:00

    Upgrade to latest ExchangeOnlineManagement v3 and .NET4.8

    (Worked for me)

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

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