Solved

Move over 1000 mailboxes to a different storage groups powershell script

Posted on 2010-09-03
6
870 Views
Last Modified: 2012-06-27
Hello,

I have to move over 1000 mailboxes this weekend into different storage groups. I have a txt file with all the aliases. I would like to use this txt file and schedule the move. Is there a powershell script that will allow me to move 10 mailboxes at a time?

Tacobell2000
0
Comment
Question by:Tacobell2000
[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
6 Comments
 
LVL 12

Expert Comment

by:FDiskWizard
ID: 33598905
have you tested any moves manually? That's a lot of mailboxes. Are they very big?
Look at this:
http://www.exchangeninjas.com/MoveMBsToTargetMD
0
 
LVL 32

Expert Comment

by:endital1097
ID: 33598937
take your text file and put it into one column in excel
add column header for alias and database
then put the name of your mailbox databases next to the user in the database column
save it as a csv file so it looks like the following

"alias",database"
"test","mail\sg1\mdb1"

then you could run the following
import-csv c:\mbxs.csv | foreach-object { Move-Mailbox $_.alias -TargetDatabase $_.database }
0
 
LVL 20

Expert Comment

by:Satya Pathak
ID: 33599224
0
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.

 

Author Comment

by:Tacobell2000
ID: 33601117
this is what I'm doing...

$users = get-content Aliases.txt
$users | move-mailbox -TargetDatabase "server\SG1\Mailbox Database" -MaxThreads 10




and this is what i get:

Move-Mailbox : The input object cannot be bound to any parameters for the comma
nd either because the command does not take pipeline input or the input and its
 properties do not match any of the parameters that take pipeline input.
At line:1 char:22


Powershell freezes up and nothing happens......then i must move the mailbox using move-mailbox command

any ideas?

Tacobell2000
0
 
LVL 32

Accepted Solution

by:
endital1097 earned 500 total points
ID: 33601241
i would just run

Get-Content c:\aliases.txt | Move-Mailbox -TargetDatabase "server\SG1\Mailbox Database" -MaxThreads 10

can you post the error from the shell
0
 

Author Comment

by:Tacobell2000
ID: 33601638
it is working now!!!

thank you Endital!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
To show how to create a transport rule 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 >> Rules tab.:  To cr…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

705 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