Issue with conneting to ExchangeOnline using PowerShell

Jarosław Bagnicki 1 Reputation point


Today morning I experience an issue with connecting ExchangeOnline using ExchangeOnlineManagement PowerShell module (I'm using 2.0.6-Preview6 version) from AzureFunction.
For more than 20 minutes (6.45-7:05 UTC) I was getting ERROR: Your attempt to connect to this Exchange server was denied because your account isn't enabled for Remote PowerShell. Your Exchange administrator can use the Set-User -RemotePowerShellEnabled command to enable your account. errors. The problem occurred on tenant located in EU and also on other one located in US.

It looks like a transient issue because later everything returned to normal without any intervention from my side.

Am I wondering if I can check anywhere if any maintenance was done during that time and where can I check it?



Error message

Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,361 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Andy David - MVP 144.9K Reputation points MVP

    Check the Service Health Dashbord for your tenant:

    There was an issue that has since been resolved that may be related:
    Some users may have been unable to access the Exchange Online service via any connection method
    EX469330, Last updated: November 21, 2022 9:06 AM
    Start time: November 21, 2022 5:40 AM, End time: November 21, 2022 7:40 AM
    Final status: We’ve determined that an unexpected issue with a section of infrastructure, responsible for regulating user traffic throughout the affected infrastructure, was causing impact. Our automated recovery systems returned the service to acceptable performance thresholds, and we’ve confirmed via service monitoring telemetry that impact is remediated.

    Scope of impact: Impact was specific to some users who were served through the affected infrastructure in the Netherlands.

    If that wasnt your issue: you can report it as well in that portal:

    2 people found this answer helpful.
    0 comments No comments