After installing Exchange Server 2016, it's important to setup SPF record for Exchange Server. SPF…
When you move a lot of users in Exchange, you like to see what is happening. It’s always great to check and verify if all is going well. The best way is to run a PowerShell command, and it will list all the move request statistics. But, what if you don’t like to see the history of the completed move requests? That’s when you want to remove completed move requests in Exchange. Then, you will not have extra information on your screen.
Get move request statistics
Open up Exchange Management Shell as administrator. Run the following command.
[PS] C:\>Get-MoveRequest | Get-MoveRequestStatistics DisplayName StatusDetail TotalMailboxSize TotalArchiveSize PercentComplete ----------- ------------ ---------------- ---------------- --------------- Doe John Completed 4.891 GB (5,251,716,383 bytes) 100 Choate Elise Completed 12.31 GB (13,219,296,270 bytes) 100 Folkers Justa Completed 6.258 GB (6,719,474,461 bytes) 100 Cesar Carson Completed 15.35 GB (16,481,936,963 bytes) 100 Rotunno Alita Completed 2.943 GB (3,160,022,128 bytes) 100
When you have a long list, it gets cluttered. You don’t want to see the older move completed lines.
Remove completed move requests Exchange
The first command will give you a confirmation prompt. Use the -Confirm switch if you don’t want to see the confirmation prompt. See the second command.
[PS] C:\>Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest Confirm Are you sure you want to perform this action? Removing completed move request "Doe, John". [Y] Yes [A] Yes to All [N] No [L] No to All [?] Help (default is "Y"): A [PS] C:\>Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest -Confirm:$false
Check if all the completed requests are removed.
[PS] C:\>Get-MoveRequest | Get-MoveRequestStatistics
Everything is empty, and now you have a clean slate. Enjoy moving mailboxes without the clutter of previously completed move requests.
You learned how to clear the statistics and to keep the completed move requests clean. It’s good to know that you can remove completed move requests in Exchange with one single command.
Did you enjoy this article? If so, you may like the article This mailbox database is associated with one or more move requests. Don’t forget to follow us.