Skip to content

Why does Exchange Online PowerShell say access denied?

Identify whether sign-in fails or a particular command is denied after connecting.

  1. Open a fresh PowerShell window on an approved work device. Load the ExchangeOnlineManagement module and use Connect-ExchangeOnline with your work account. Complete your usual sign-in.

  2. If sign-in fails, confirm the organisation and account in the prompt. Give your administrator the error, time and correlation ID through your normal internal channel. Keep MFA enabled.

  3. If sign-in succeeds but a command is unavailable, record its name and which mailbox you intended to manage. Ask the administrator to check the least-privileged Exchange role and its scope.

  4. After access is confirmed, reconnect and repeat the original permitted read-only check. Disconnect with Disconnect-ExchangeOnline when finished.

Official product guidance

Explore the related guide or tool