Skip to main content
  1. Runbook/
  2. Microsoft 365/

Exchange Online PowerShell Connections

Time guide

  • Initial checks: approximately 10 to 20 minutes
  • Detailed investigation: approximately 20 to 60 minutes

Purpose
#

Install, connect, verify and disconnect Exchange Online PowerShell safely. This public reference consolidates professional support experience developed since March 2022 and uses generic placeholders rather than employer or customer information.

Commands and checks
#

Install-Module ExchangeOnlineManagement -Scope CurrentUser
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName <admin-account>
Get-ConnectionInformation
Disconnect-ExchangeOnline -Confirm:$false

Interpretation
#

  • Capture timestamps and exact errors.
  • Compare the result with policy, expected configuration and recent changes.
  • Confirm whether a central management platform can override local settings.
  • Preserve relevant logs before a repair, restart or re-enrollment action.

Safety notes
#

Read-only checks appear before repair actions where possible. Commands that update signatures, scan a device, repair Windows, renew DHCP, resume encryption or alter managed services require appropriate authorisation and impact review. Never paste credentials, recovery keys, tenant identifiers, personal information or unsanitised diagnostic output into public records.

Related entries#

  • Windows Support Command Reference
  • Windows Network Troubleshooting
  • Security Incident Triage
  • Connectivity and Port Testing