Commands › Exchange Online

Disable-IPv6ForAcceptedDomain

Exchange Online ExchangeOnlineManagement Disable-*

Disable or opt-out of support for mail delivery to accepted domains in Exchange Online using IPv6.

Quick start script

# Disable-IPv6ForAcceptedDomain — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-IPv6ForAcceptedDomain
$before | Format-List

# 3. Make the change (dry run first)
Disable-IPv6ForAcceptedDomain  -WhatIf
Disable-IPv6ForAcceptedDomain

# 4. Verify and diff
$after = Get-IPv6ForAcceptedDomain
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

Disable-IPv6ForAcceptedDomain [[-Domain] <String>]
 [-Confirm]
 [-WhatIf]
 [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Domain String The Domain parameter specifies the accepted domain that you want to disable mail delivery using IPv6 for.
-Confirm SwitchParameter This parameter is reserved for internal Microsoft use.
-WhatIf SwitchParameter This parameter is reserved for internal Microsoft use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.