Enable IPv6 for Exchange Online

Guide on how to enable IPv6 connectivity for Exchange Online to troubleshoot network issues.

The Issue

Sometimes, turning off IPv6 causes connectivity problems with Microsoft 365 services, as Microsoft heavily relies on IPv6 in their datacenter infrastructure. If you have disabled IPv6 on your network adapter, you might face issues connecting to Exchange Online via PowerShell or Outlook.

How to Check IPv6 Status

Run this PowerShell command to see if your adapters have IPv6 enabled:

Get-NetAdapter | Get-NetAdapterBinding -ComponentID ms_tcpip6

If Enabled is False, IPv6 is disabled.

How to Enable IPv6

Method 1: Using PowerShell (Recommended)

  1. Open PowerShell as Administrator.
  2. Run the following command to enable IPv6 on a specific adapter (e.g., "Ethernet"):
Enable-NetAdapterBinding -Name "Ethernet" -ComponentID ms_tcpip6

Or for all adapters:

Get-NetAdapter | Enable-NetAdapterBinding -ComponentID ms_tcpip6

Method 2: Via Network Connections (GUI)

  1. Press Win + R, type ncpa.cpl and press Enter.
  2. Right-click your network adapter (e.g., Ethernet or Wi-Fi).
  3. Select Properties.
  4. Check the box next to Internet Protocol Version 6 (TCP/IPv6).
  5. Click OK.

Registry Fix for Preferring IPv4 over IPv6

If you enabled IPv6 but want to prefer IPv4 (to avoid DNS issues while keeping IPv6 active for Exchange), use this registry setting.

  1. Open PowerShell as Administrator.
  2. Run:
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters" -Name "DisabledComponents" -Value 0x20 -PropertyType DWORD -Force

Value 0x20 tells Windows to prefer IPv4 over IPv6.

  1. Restart computer.

Why keep IPv6 Enabled?

Microsoft recommends keeping IPv6 enabled. Disabling it completely can break:

User