Solved

Move exchange 2007 mailboxes from one DB to another DB

Posted on 2009-05-18
4
485 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Read this checklist to learn more about the 15 things you should never include in an email signature.
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…
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…

696 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