As you might have read I do a lot of mailbox moves right now and today I needed to find all remaining users in Exchange 2007 and create my last batch of moverequest.
To find all users in Exchange 2007 that had no moverequest associated to them and create a new moverequest I used:
Get-Mailbox -ResultSize Unlimited | where {$_.MailboxMoveStatus -eq "None" -And $_.Database -like "Exchange2007server\*"} | New-MoveRequest –BatchName LastBatch -BadItemLimit 5 –SuspendWhenReadyToComplete
As you can see I create suspended moverequests that will be resumed later on but that is of course optional.
Happy moving!