Thursday, September 29, 2022

[ReSolved] Get-MailboxRestoreRequest matches multiple entries and couldn´t be performed

When you try to remove a mailbox restore request in Exchange Online (aka Office 365) you got an error called “The operation couldn’t be performed because ‘X Y’ matches multiple entries.”

Like seen below:

PS C:\Users\bastian> get-mailboxrestorerequest | remove-mailboxrestorerequest
The operation couldn't be performed because 'Maria Magdalena' matches multiple entries.
    + CategoryInfo          : NotSpecified: (:) [Remove-MailboxRestoreRequest], ManagementObjectAmbiguousException
    + FullyQualifiedErrorId : [Server=AM6PR05MB4262,RequestId=a5e55e66-327b-4abf-89a3-ea2b005c8014,TimeStamp=07.06.201
   9 17:50:50] [FailureCategory=Cmdlet-ManagementObjectAmbiguousException] A5DE5415,Microsoft.Exchange.Management.Mig
  ration.MailboxReplication.MailboxRestoreRequest.RemoveMailboxRestoreRequest
    + PSComputerName        : outlook.office365.com

The operation couldn't be performed because 'Maria Magdalena' matches multiple entries.
    + CategoryInfo          : NotSpecified: (:) [Remove-MailboxRestoreRequest], ManagementObjectAmbiguousException
    + FullyQualifiedErrorId : [Server=AM6PR05MB4262,RequestId=c24719ab-fef7-460b-be74-7a90d497af28,TimeStamp=07.06.201
   9 17:50:50] [FailureCategory=Cmdlet-ManagementObjectAmbiguousException] A5DE5415,Microsoft.Exchange.Management.Mig
  ration.MailboxReplication.MailboxRestoreRequest.RemoveMailboxRestoreRequest
    + PSComputerName        : outlook.office365.com

The solution would be to use the GID to remove the request. To get the GID, list at first all requests via:

Get-MailboxRestoreRequest | fl

Then use the RequestGuid to remove the request you need via:

Remove-o365MailboxRestoreRequest f46a75e4-267e-4f4e-9d4d-0542e0eaf592

once confirmed the restore request is gone:

Confirm
Are you sure you want to perform this action?
Removing request 'Maria Magdalena\MailboxRestore1'.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): y

 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

23FollowersFollow
- Advertisement -

Latest Articles