Solved

Move exchange 2007 mailboxes from one DB to another DB

Posted on 2009-05-18
4
481 Views
Last Modified: 2012-05-07
I'm looking for a powershell command to bulk move mailboxes in Exchange 2007.  I want to move them from one store DB to another on the same server.  I simply want to do this to perform a defrag without completely taking the stores offline.  We had just implemented a policy that purged over half the email.  I would like to do this without having to use a .csv file.  I would guess there is a way to do a get-mailbox from one store and then pipe that in the move mailbox command to the new store.
0
Comment
Question by:ITSMA
  • 3
4 Comments
 
LVL 24

Accepted Solution

by:
Rajith Enchiparambil earned 500 total points
ID: 24413852
get-mailbox -database databasename | move-mailbox -targetdataabse databasename
0
 
LVL 24

Expert Comment

by:Rajith Enchiparambil
ID: 24413869
A proper example below. Change the server, dbnames.

Get-Mailbox Database DCEXCH\First Storage Group\Mailbox Store (DCEXCH) | Move-Mailbox TargetDatabase E2K7\First Storage Group\Mailbox Database MaxThreads 10

-MaxThreads 10 will start 10 mailbox move threads (normal is 4). Max value you can ahve is 30.
0
 
LVL 1

Author Comment

by:ITSMA
ID: 24414735
Thanks.  I will give this a try hopefully tonight.  I figured it should be fairily simple, but just wasn't sure on the command.  So if I don't specify the MaxThreads will that default to 30?
0
 
LVL 24

Expert Comment

by:Rajith Enchiparambil
ID: 24414791
No, default value is 4.
0

Featured Post

Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

Join & Write a Comment

Easy CSR creation in Exchange 2007,2010 and 2013
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now