Solved

Powershell script for Bulk Mailbox movement in Exchange 2007

Posted on 2011-09-24
9
483 Views
Last Modified: 2012-05-12
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
Comment
Question by:Kartik2011
[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
  • 4
  • 3
  • 2
9 Comments
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36592451
Get-Mailbox –Database “servername\First Storage Group\sg1” | Move-Mailbox –TargetDatabase “servername\First Storage Group\sg2'
0
 
LVL 49

Expert Comment

by:Akhater
ID: 36592974
more likely

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

Author Comment

by:Kartik2011
ID: 36595269
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
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
LVL 13

Accepted Solution

by:
5g6tdcv4 earned 100 total points
ID: 36595281

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
 
LVL 49

Assisted Solution

by:Akhater
Akhater earned 25 total points
ID: 36595605
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
 

Author Comment

by:Kartik2011
ID: 36601089
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
 
LVL 13

Expert Comment

by:5g6tdcv4
ID: 36601106
Just the username
0
 
LVL 13

Assisted Solution

by:5g6tdcv4
5g6tdcv4 earned 100 total points
ID: 36601225
BElliot
EEvans
JKarcher
LYang


thats the format for the text file
0
 

Author Closing Comment

by:Kartik2011
ID: 36942317
Well answer was not complete with all details
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Distinguished username as email address 4 43
Edge Server Subscription 5 20
Check SMTP log file on Exchange 2010 7 35
exchange, office 365 13 35
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

749 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