John Yassa's Blog

Home » 2013 » January

Monthly Archives: January 2013

How to remove default mailbox database in Exchange 2010

Most of us as messaging administrators want to delete the default created mailbox database with any new exchange mailbox server

If you tried to delete this default database in normal way you will face the below error

So what to do to delete the default database!!!!!!!

below is the steps needed to delete the default database:

  1. Moving Arbitration Mailboxes (System Mailboxes , FederatedEmail) & Discovery mailbox

Get-Mailbox -Arbitration -Database “Mailbox Database 1973945018”
you will get the below result

Now moving this arbitration mailboxes to another DB (MailboxDB) using the below Command
Get-Mailbox -Arbitration -Database “Mailbox Database 1973945018” | New-MoveRequest -TargetDatabase MailboxDB

Now to move the Discovery mailbox , use the Exchange Mangement Console as below

Once all moves are complete, you can remove the move request from the Exchange management console

2. Move Mailboxes exist on this Mailbox Database

you can do that by the following command :
Get-Mailbox -Database “Mailbox Database 1973945018” | New-MoveRequest -TargetDatabase MailboxDB

3. Move any archiving mailboxes exist on this DB

Now get all archiving mailboxes and thier corrosponding DBs
Get-mailbox -archive | fl identity,database

Now move these archiving mailboxes to any other DB
Get-Mailbox -Archive | New-MoveRequest -ArchiveTargetDatabase ‘Mailbox Database’ -ArchiveOnly

4. Now you can delete the default Mailbox Database safely without any problem

How to recover a crashed Exchange 2010 Server

Let us assume the functional exchange 2010 server got crashed due to hardware failure, here are the steps that need to build the server again. Showing up this in a demo will take long time and the steps mentioned will guide you to recover a crashed server.

  • Arrange a new Server with the same operating system as like the failed server and assign the same drive letter for the databases and the log files directory
  • Reset the Active Directory Account for failed server
  • Install and configure the perquisites that are needed to install Exchange Server 2010
  • Ensure the network connectivity and configure the new computer with the correct IP address same like the crashed one
  • Join the new computer with the domain controller with the same computer name as a failed server
  • Run the setup Mode:recoverserver
  • Restore databases on the location of the new Disks, if needed replay the transaction logs
  • If it is non mailbox servers, restore the configuration files from backup or from other servers like transport server customized  configuration for Hub and External and Internal access URLs for Client Access Server etc.

Moving bulk mailboxes

How to move bulk mailboxes from one database to another one

There are more than one way to move mailboxes to another database:

1- Move all mailboxes in one database to another database, then you can use the command below, this will move all mailboxes from DB “Source mailbox DB” to “Destination Mailbox DB”

Get-Mailbox –Database ‘Source Mailbox DB’ | New-MoveRequest –TargetDatabase `  ‘Destination Mailbox DB’

2- Move few mailboxes, you can use the below command
$Mailboxes is an array containing the names of three mailbox
Each mailbox is passed into the New-MoveRequest cmdlet for processing not concerning the source mailbox DB

$Mailboxes = ‘john’,’nassan’,’yassa’

ForEach ($SingleMailbox in $Mailboxes) {New-MoveRequest –Identity $SingleMailbox ` –TargetDatabase ‘Destination Mailbox DB’ –BatchName Batch01}

3- Using CSV file, like the below where ID is the column header and use the below command

Import-CSV ./mailboxes.csv | foreach {New-MoveRequest -Identity $_.ID – TargetDatabase “Destination Mailbox DB“}

This will work regardless the source Mailbox DB


Update Rollup 5 version 2 for Exchange Server 2010 Service Pack 2 is now aviliable

Microsoft has released Update Rollup 5 version 2 for Microsoft Exchange Server 2010 Service Pack 2 (SP2). This update is dated December 11, 2012.

Issues that the update rollup resolves

Update Rollup 5 version 2 for Exchange Server 2010 SP2 addresses the vulnerabilities that are described in Microsoft Security Bulletin MS12-080

. This update also resolves the issues that are described in the following Microsoft Knowledge Base (KB) articles:

For more information

%d bloggers like this: