Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Move exchange 2007 mailboxes from one DB to another DB

Posted on 2009-05-18
4
Medium Priority
?
488 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 2000 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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Want to know how to use Exchange Server Eseutil command? Go through this article as it gives you the know-how.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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…
Suggested Courses

636 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