Exchange 2013 | Remove complete moverequest list via Powershell.

If you just moved from exchange 2010 to exchange 2013 it will be possible you have a long list with of completed items.
It might happen that you try to delete the move request on the old system. But than you recieve the following error:

——————————————————–
Microsoft Exchange Error
——————————————————–
Action ‘Clear Move Request’ could not be performed on object ‘Administrator’.
Administrator
Failed
Error:
Failed to communicate with the mailbox database.
MapiExceptionNoAccess: Unable to open message store. (hr=0x80070005, ec=-2147024891)
Diagnostic context:
Lid: 55847   EMSMDBPOOL.EcPoolSessionDoRpc called [length=227]
Lid: 43559   EMSMDBPOOL.EcPoolSessionDoRpc returned [ec=0x0][length=216][latency=0]
Lid: 23226   — ROP Parse Start —
Lid: 27962   ROP: ropLogon [254]
Lid: 17082   ROP Error: 0x80070005
Lid: 26937
Lid: 21921   StoreEc: 0x80070005
Lid: 27962   ROP: ropExtendedError [250]
Lid: 1494    —- Remote Context Beg —-
Lid: 45112   StoreEc: 0x80070005
Lid: 56872   dwParam: 0xFE
Lid: 42712   StoreEc: 0x80070005
Lid: 10786   dwParam: 0x0        Msg: 15.00.0775.010:XCH05
Lid: 1750    —- Remote Context End —-
Lid: 26849
Lid: 21817   ROP Failure: 0x80070005
Lid: 26297
Lid: 16585   StoreEc: 0x80070005
Lid: 32441
Lid: 1706    StoreEc: 0x80070005
Lid: 24761
Lid: 20665   StoreEc: 0x80070005
Lid: 25785
Lid: 29881   StoreEc: 0x80070005
——————————————————–
OK
——————————————————–

This happens only when you try it on the old system. Go back to the new Excahnge 2013 server.
If you use the command.:
Get-MoveRequest
You will see the complete list of the moverequest.
The following command can be used to complete the requests with a certain status.
[PS] C:\Windows\system32>Get-MoveRequest -movestatus completed | remove-moverequest
Confirm
Are you sure you want to perform this action?
Removing completed move request “Administrator”.
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is “Y”): A
This will remove the moverequest list on both servers.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.