Microsoft Exchange team releases Exchange Server Security Updates (SUs) when vulnerabilities are discovered. You don't…
When you move a lot of users in Exchange, you like to see what is happening. It is always great to check and verify if all is going well. The best way is to run a PowerShell command and it will list you all the move request statistics. If you do a new move and do a request for the statistics, you don’t always like to see the history of the move completed. It’s good to remove completed move requests in Exchange. 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 confirm prompt. Make use of the -Confirm switch if you don’t want to see the confirm 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, 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 your completed request clean. Don’t forget 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 Move mailbox to another database with PowerShell. Don’t forget to follow us.