Commands › Exchange Online
Stop-MigrationUser
This cmdlet is functional only in the cloud-based service. Use the Stop-MigrationUser cmdlet to stop the migration of a user in an existing migration batch.
Quick start script
# Stop-MigrationUser — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org
# 2. Run and inspect
Stop-MigrationUser | Format-List
# 3. Export for evidence / drift tracking
Stop-MigrationUser | Export-Clixml .\MigrationUser-$(Get-Date -Format yyyyMMdd).xml
Syntax
Stop-MigrationUser [[-Identity] <MigrationUserIdParameter>]
[-Confirm]
[-DomainController <Fqdn>]
[-Partition <MailboxIdParameter>]
[-WhatIf]
[<CommonParameters>]
Parameters (5)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.