Installing Exchange 2010 With A Default Mailbox Database Which Follows The Company Standards…

MS Exchange

Installing Exchange 2010 mailbox role creates a mailbox database by default and gives a random name. I am sure everyone will agree that this brings more pain than any benefit. It would have been nice if there was a section to provide the default database name in the setup wizard. Once the mailbox role is installed, an admin has to either change the name of the database to follow the naming conventions of the company and move the database to the correct LUNs or create a new database, move all mailboxes (including arbitration ones) and delete the database created as part of the setup. I have explained here how to deal with the default database.

Another efficient method of dealing with this problem is to run the Exchange 2010 installation from the command line. The Setup.Com includes switches to better manage the creation of the default database. Though you can’t block the setup from creating the default database, you can give a database name (which follows your naming convention) and the setup will create the default database with that name.

Run the command below (assuming that you are in the Exchange 2010 installation source directory) to create a default database called DB1.

Setup.Com /mode:install /roles:mailbox /InstallWindowsComponents /MdbName:DB1

Unattended 2010 Install

You can specify the path for the default database as well. That way, you can move the database & log files to the appropriate LUN as part of the setup. Run the following command to have the database in drive “D” and logs in “L”.

Setup.Com /mode:install /roles:mailbox /InstallWindowsComponents /MdbName:DB1 /Dbfilepath:D:DatabasesDB1DB1.edb /Logfolderpath:L:LogsDB1

If you want to install Exchange 2010 in a different drive that the system one, say drive “E”, run the command below.

Setup.Com /mode:install /roles:mailbox /InstallWindowsComponents /TargetDir:”E:Program FilesMicrosoftExchange ServerV14” /MdbName:DB1 /Dbfilepath:D:DatabasesDB1DB1.edb /Logfolderpath:L:LogsDB1

Check TechNet for the full switches that can be used with Setup.Com

No more messing around with the default database Winking smile

Other Popular Articles


MS Exchange

Scripting Agent Initialization Failed: “File is not found” Error During Exchange 2016 Setup

MS Exchange

EAC Access While Co-Existing Exchange 2013 With 2010

MS Exchange

Delete All Calendar Entries In An Exchange 2010 Mailbox

Leave a Comment