July 2017
Intermediate to advanced
648 pages
31h 9m
English
In order to create and mount mailbox databases and add database copies to multiple servers in a DAG, several commands must be run from within the shell. If you do deployments on a regular basis or if you build up and tear down lab environments frequently, this is a process that can easily be automated with PowerShell.
The PowerShell function New-DAGMailboxDatabase creates new mailbox databases from scratch, mounts them, and then adds passive copies of each database to the remaining servers you specify. The code for this function is as follows:
function New-DAGMailboxDatabase { param ( $ActiveServer, $PassiveServer, $DatabasePrefix, $DatabaseCount, $EdbFolderPath, $LogFolderPath ) For ($i=1; $i -le $DatabaseCount; $i++) { ...Read now
Unlock full access