PowerShell help - mailbox migration (Full Version)

All Forums >> [Microsoft Exchange 2007] >> Migration



Message


dvillar -> PowerShell help - mailbox migration (30.Jun.2008 3:29:53 PM)

Is there an Exchange shell command that will allow me to move mailboxes of a certain size into a particular storage group? Say for example I want to move all mailboxes that are currently in storage group A and are less than 250Mb to storage group B.

I have created my storage groups based on storage limits. So for example storage group NormalUsers is for users whose mailboxes are no larger than 250Mb, and storage group PowerUsers is for users whose mailboxes are no larger than 500Mb.




Sembee -> RE: PowerShell help - mailbox migration (1.Jul.2008 8:40:53 AM)

There is no single command that will do it - but I would be surprised if there was. PowerShell is designed to take various commands and use them together.

Therefore you will have to use something like (untested, from my notes, so will need some work to function fully)

Get-MailboxStatistics -database server\storagegroup |where {$_.TotalItemSize -lt 250MB} | move-mailbox <etc etc>

You will need to add the move mailbox commands that are required to move the mailboxes.

Simon.




Page: [1]