Commands › Exchange Online
Remove-PublicFolderMoveRequest
Cancel a mailbox move initiated using the New-MoveRequest cmdlet. After the move is finalized, you can't undo the move request.
Quick start script
# Remove-PublicFolderMoveRequest — 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-PublicFolderMoveRequest
$before | Format-List
# 3. Make the change (dry run first)
Remove-PublicFolderMoveRequest -Identity <PublicFolderMoveRequestIdParameter> -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter> -WhatIf
Remove-PublicFolderMoveRequest -Identity <PublicFolderMoveRequestIdParameter> -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter>
# 4. Verify and diff
$after = Get-PublicFolderMoveRequest
Compare-Object ($before | Out-String) ($after | Out-String)
Syntax — 2 parameter sets
Identity
Remove-PublicFolderMoveRequest [-Identity] <PublicFolderMoveRequestIdParameter>
[-Confirm]
[-DomainController <Fqdn>]
[-Force]
[-WhatIf]
[<CommonParameters>]
MigrationRequestQueue
Remove-PublicFolderMoveRequest -RequestGuid <Guid> -RequestQueue <DatabaseIdParameter>
[-Confirm]
[-DomainController <Fqdn>]
[-WhatIf]
[<CommonParameters>]
Parameters (7)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.