Powershell script for Bulk Mailbox movement in Exchange 2007

Hi,

Can i get Powershell script for Bulk Mailbox movement from one exchange 2007 mailbox server to other Exchange 2007 Mailbox Server in Same Exchange organization
Kartik2011Asked:
Who is Participating?
 
5g6tdcv4Connect With a Mentor Commented:

create a txt file with you users then run,
Get-Content C:\users.txt | Move-Mailbox -TargetDatabase  “destservername\First Storage Group\sg2' -Confirm:$false
0
 
5g6tdcv4Commented:
Get-Mailbox –Database “servername\First Storage Group\sg1” | Move-Mailbox –TargetDatabase “servername\First Storage Group\sg2'
0
 
AkhaterCommented:
more likely

get-mailbox -server ServerToRemove | move-mailbox -TargetDatabase  “ServerToAdd\First Storage Group\MailboxDatabase"
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Kartik2011Author Commented:
Well i think the commands given will move all the mailbox in particular database. But i want to move some of the mailboxes not all for eg:- want to move 30 outoff 50 mailbox from Exchange database SG1 to Exchange database SG2 can anyone help me on this
0
 
AkhaterConnect With a Mentor Commented:
Simply use the result size parameter, the below will move 30 mailboxes for example

get-mailbox -server ServerToRemove -resultsize 30 | move-mailbox -TargetDatabase  “ServerToAdd\First Storage Group\MailboxDatabase"
0
 
Kartik2011Author Commented:
Hi,

Please let me know hoe the content of txt filr should be. i mean what ad attribute we have use and in what format.
Also can we use csv file if yes how its format should be.
0
 
5g6tdcv4Commented:
Just the username
0
 
5g6tdcv4Connect With a Mentor Commented:
BElliot
EEvans
JKarcher
LYang


thats the format for the text file
0
 
Kartik2011Author Commented:
Well answer was not complete with all details
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.