• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

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
0
Kartik2011
Asked:
Kartik2011
  • 4
  • 3
  • 2
3 Solutions
 
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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
5g6tdcv4Commented:

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
 
AkhaterCommented:
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
 
5g6tdcv4Commented:
BElliot
EEvans
JKarcher
LYang


thats the format for the text file
0
 
Kartik2011Author Commented:
Well answer was not complete with all details
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now