CloudServus - Microsoft Consulting Blog

Reporting on Mailboxes and Moving Mailboxes based on Input File - Microsoft Consulting Services - CloudServus - United States

Written by cloudservuscom | Jul 12, 2011 12:20:43 AM

 

 

Get-Mailbox -resultsize unlimited | Get-MailboxStatistics | where {$_.ObjectClass -eq “Mailbox”} | Sort-Object TotalItemSize -Descending | ft DisplayName,@{expression={$_.TotalItemSize.Value.ToMB()}},ItemCount,StorageLimitStatus > C:InstallsScriptsMailboxSizes.txt

 

Get-Content .mailboxmove.txt | New-MoveRequest -TargetDatabase EXDAG01DB01 -Confirm:$false