Get-Mailbox –RecipientTypeDetails "legacy mailboxes" | Move-Mailbox –
TargetDatabase "Exchange2007 server name\Storage Group name\Mailbox Database name"