Solved

Move exchange 2007 mailboxes from one DB to another DB

Posted on 2009-05-18
4
482 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
In this video we show how to create an Address List 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 Organization >> Ad…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 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