Commands › Exchange Online

Remove-PublicFolderMoveRequest

Exchange Online ExchangeOnlineManagement Remove-*

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)

ParameterTypeRequiredWhat it controls
-Identity PublicFolderMoveRequestIdParameter yes The Identity parameter specifies the identity of the public folder move request. The default identity is \\PublicFolderMove.
-RequestGuid Guid yes The RequestGuid parameter specifies the GUID of the public folder move request. If you specify the RequestGuid parameter, you must also specify the RequestQueue parameter.
-RequestQueue DatabaseIdParameter yes The RequestQueue parameter identifies the request based on the mailbox database where the request is being run. You can use any value that uniquely identifies the database. For example:
-Confirm SwitchParameter The Confirm switch specifies whether to show or hide the confirmation prompt. How this switch affects the cmdlet depends on whether the cmdlet requires confirmation before proceeding.
-DomainController Fqdn This parameter is functional only in on-premises Exchange.
-Force SwitchParameter The Force switch hides warning or confirmation messages. You don't need to specify a value with this switch.
-WhatIf SwitchParameter The WhatIf switch shows what the command does without making any changes. You don't need to specify a value with this switch.

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