Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

PowerShell help - mailbox migration

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> Migration >> PowerShell help - mailbox migration Page: [1]
Login
Message << Older Topic   Newer Topic >>
PowerShell help - mailbox migration - 30.Jun.2008 3:29:53 PM   
dvillar

 

Posts: 33
Joined: 15.Mar.2006
Status: offline
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.
Post #: 1
RE: PowerShell help - mailbox migration - 1.Jul.2008 8:40:53 AM   
Sembee

 

Posts: 3191
Joined: 17.Jan.2008
From: Somewhere near London, UK
Status: offline
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.

_____________________________

Simon Butler,
Exchange MVP
Blog: http://www.sembee.co.uk/
Web: http://www.amset.info/
In the UK? Hire me: http://www.amset.co.uk/

(in reply to dvillar)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> Migration >> PowerShell help - mailbox migration Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts