Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Exchange / How to delete default database in Exchange 2010/2013

February 3, 2014 Exchange

How to delete default database in Exchange 2010/2013

During the process of mailboxes server Exchange 2010/2013 installation mailbox default database is created. If you try to delete default database you will get an error. The error appears because service mailboxes presence in the database.

error on delete default database exchange

This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list of all mailbox plans in this database, run the command Get-MailboxPlan. To get a list of archive mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Archive. To get a list of all public folder mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -PublicFolder. To get a list of all arbitration mailboxes in this database, run the command Get-Mailbox -Database <Database ID> -Arbitration. To disable a non-arbitration mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID>. To disable an archive mailbox so you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -Archive. To disable a public folder mailbox so that you can delete the mailbox database, run the command Disable-Mailbox <Mailbox ID> -PublicFolder. Arbitration mailboxes should be moved to another server; to do this, run the command New-MoveRequest <parameters>. If this is the last server in the organization, run the command Disable-Mailbox <Mailbox ID> -Arbitration -DisableLastArbitrationMailboxAllowed to disable the arbitration mailbox. Mailbox plans should be moved to another server; to do this, run the command Set-MailboxPlan <MailboxPlan ID> -Database <Database ID>.

Service mailboxes transfer

For database deletion it is necessary to transfer these mailboxes to the another database.  The following command is needed to be performed for arbitration mailboxes search:

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344"

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344"

Get System Mailbox Exchange 2010 / 2013

Now let’s transfer these mailboxes into another database:

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

Get-Mailbox -Arbitration -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

transfer system mailbox exchange2010 to another database

Except for arbitration mailboxes in Default Database there are also administrator Mailbox and Discovery Search Mailbox. They also should be transfered.

Get-Mailbox -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

Get-Mailbox -Database "Mailbox Database 1200388344" | New-MoveRequest -TargetDatabase prmlabmbx01-prmdag01-db01

move admin and discovery search mailbox's

Let’s check if transfer was successful.

Get-MoveRequest

Get-MoveRequest

exchange mailbox move request

After transfer the default database may be deleted.

Remove-MailboxDatabase "Mailbox Database 1200388344"

Remove-MailboxDatabase "Mailbox Database 1200388344"

delete exchange 2010 default database

2 comments
0
Facebook Twitter Google + Pinterest
previous post
How to clean-up system disk in Windows 7 SP1 by deprecated system updates deleting
next post
Safe cleaning up WinSXS folder in Windows Server 2012

Related Reading

How to Cleanup, Truncate or Move Log Files...

March 16, 2021

How to Create and Manage Distribution Groups (Lists)...

March 11, 2021

Get-MessageTrackingLog: Search Message Tracking Logs on Exchange Server

December 19, 2019

Managing Exchange Mailbox Inbox Rules with PowerShell

August 29, 2019

Fix: Outlook 2016/2013 Always Starts in Offline Mode

July 30, 2019

2 comments

Juan June 15, 2016 - 1:22 pm

Thanks, work for me!

Reply
Christian November 8, 2016 - 12:28 pm

Thanks, worked for me too!
One thing I have to mention: The database has to be mounted (through ECP or Shell).

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • How to Disable NetBIOS and LLMNR Protocols in Windows Using GPO?

    April 9, 2021
  • Enable Windows Lock Screen after Inactivity via GPO

    April 8, 2021
  • How to Create and Manage Scheduled Tasks with PowerShell?

    April 7, 2021
  • Updating Windows VM Templates on VMWare with PowerShell

    April 5, 2021
  • Running Multiple IIS Websites on the Same Port or IP Address

    April 1, 2021
  • Can’t Copy and Paste via Remote Desktop (RDP) Clipboard

    March 31, 2021
  • UAC: This App Has Been Blocked for Your Protection on Windows 10

    March 30, 2021
  • How to Unlock a File Locked by Any Process or SYSTEM?

    March 29, 2021
  • Configuring a Domain Password Policy in the Active Directory

    March 26, 2021
  • Using Native Package Manager (WinGet) on Windows 10

    March 24, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • Manage Domains and Email Address Whitelist in Exchange Server 2013
  • Exchange 2013 Database Recovery
  • Full Mailbox and Single Item Recovery in Exchange 2013
  • Exchange 2013: MAPI over HTTP
  • How to Hide Users from Exchange Distribution Group
  • Exchange 2013 Mailbox Database Backup with Windows Server Backup
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top