The Exchange management shell provides a set of command Latz for Mailbox database management.
And this video will take a look at how you can use this command LEDs to create change or delete mailbox
databases.
We'll also take a look at how the automatic mailbox distribution works.
Let's get started.
So the process of managing mailbox databases is pretty straightforward.
We'll start with creating a new mailbox database to create a mailbox database use the new mailbox the
database command left.
Here is an example.
New mailbox database name before it in the file path siecle on backslap databases DBI for database db
before that it'd be.
It's the full path.
And please take into consideration their time in years and OLEDB environment in case of production environment.
Don't put your database on C-Drive and other parameters lock folder path.
In my case it's also C-Drive call on backslash databases be before looks and you have to specify a server.
In my case it's x 1.
You can Montu the database after it has been created using the MT database command bled like this small
database identity.
DBI for the name of a database can be changed to Yulun the set mailbox database.
For example you can rename newly created DBI for database with set my inbox database identity DBI for
name database for.
And finally you can remove my mailbox database use the remove mail box database command left like in
this example the remove database identity database for conform set to false.
No the new mailbox database commands that requires that you provide a name for your database and specify
the server name where it should be hosted in the previous example you can see that we created DBI for
a database on the X once or there.
It is the file path parameter specifies the location for your database file.
However it's not required for creating the database.
Additionally you can use the lock for folder paths were able to identify the directory that should halt
the transaction logs for this database.
If no well it was provided for either of these parameters the database and block directories will be
set to the default location within the exchange installation directory.
Mountain database is done as a seperate step.
If you want to create a database and mount it in one operation wipe your new database command to the
Mount data base command left as in this example you can type new mailbox.
The best name db a server swamp and pipe it to mount database command let the database command left
can be used with mailbox databases.
The same is true for its counterpart Guzman database which allows you to just mount a mailbox database
as you saw previously to rename it to a mailbox database we use to set mailbox database command left
with the name parameter.
It's important to note that while this will change the database name in the Active Directory and therefore
In exchange it does not change the file name or path of the database.
Some votes about removing databases before running the remove mailbox database command left.
You will need to move in your regular mail boxes or carve mailboxes or arbitration mailboxes to another
database.
Use the new move request or new migration batch command left to perform this operation.
The arbitration mailboxes can be found by you and the get mail box.
This arbitration command these can be a form all the fields create a database.
Keep in mind that the removal of a database is only done logical in the Active Directory.
Later on you'll need to manually delete the files and directories used by the database running removal
database Come on let Lerat too.
Only two required parameters for creating a mailbox database which are name and server.
However there are other alike.
It may be a file path and lock folder paths are nice to use for specifying the configuration.
The database parameter allows you to make the database parameter when creating or moving a mailbox around
an agent determines the most appropriate target database based on a number of factors.
The mailbox resource management agent I can't let extension agent is an application that runs in the
background that handles this and it is enabled by default.
The benefit of this is that if your birth vision multiple mailboxes or move multiple mailboxes at one
time without specifying a target database the mailboxes will be distributed across all the available
data mailbox databases in the current active directory site from where you are running the commands.
Some servers about automatic mailbox distribution each mailbox database has three properties called
is excluded from provision and is excluded from initial provision and is suspended from provision in
this control.
Whether or not a database can be used for automatic mailbox distribution by default all are set to false.
Which means that every mailbox database you create is available for automatic distribution out of the
box.
If you intend to create a mailbox database used strictly for archiving mailboxes or you don't want mailboxes
to be placed in a particular database automatically you can exclude the database from being automatically
used to do so.
Use the following command syntax after the database has been created so that mailbox database identity
Duby a term is excluded from provision I'm set to true when the is excluded from provision and properties
set to true.
You can still manually create mailboxes in the database but it will not be used for automatic distribution.
Now let's look at an example of great and mailbox databases in bulk.
These can be helpful and create in many databases.
The following code can be used for doing the job.
In this example we create an array by importing ancestry file V-Star lupins through each row in the
file.
Also in the loop we create new variable named D-B name lock path DBI pass and Sorber these variables
are then used to link them and let new mailbox database.
Finally is this small script will loop through each row again and create a new variable named DBI name
and try to Monte's database.
In this case the file please know that the root source called Massive t underscore Exchange mailbox
database in X exchange module for desired state configuration can be used for creating databases.
Also please note that when creating databases in larger environments it can be impossible to monitor
the databases immediately.
In these cases let the active directory or application finish when it's completed.
The databases can be mounted.
Now let's have a quick recap.
What we have learnt in this lesson as all of this we've used the main verbs of power shell for workingmen's
databases namely said database remove database and new database.
So to create a new database we used new mailbox database command left.
Optionally you can use it in the file paths parameter and look folder pass parameter the required parameter
Athar name and server to modify the database settings and configuration.
You can use set mailbox database command left for example to rename a database or exclude from automatic
mailbox distribution.
You can use set mailbox exclude from provisioning or to rename cert mailbox identity D-B one name debate
too this will remain database may be one database named Debbie to be used more database command left
to mount to a specific database and its counterpart dismount database.
Let's come on get dismount a specific database.
You can also remove databases remove mailbox database command left and of course you can create databases
in bulk by using assistive file and import says field command left.