Notice: Due to size constraints and loading performance considerations, scripts referenced in blog posts are not attached directly. To request access, please complete the following form: Script Request Form Note: A Google account is required to access the form.
Disclaimer: I do not accept responsibility for any issues arising from scripts being run without adequate understanding. It is the user's responsibility to review and assess any code before execution. More information

Exchange Databases - Powershell

If you wish to use the management shell to create a database these are the commands I use, I also find powershell more reliable than the ECP GUI:

Create Database:

New-MailboxDatabase -Name "DB1" -EdbFilePath D:\DB\DB1.edb -LogFolderPath E:\TL\DB1\

Mount Database:

Mount-Database -Identity "DB1"

Add the Mailbox Database Copy:

Add-MailboxDatabaseCopy -Identity DB1 -MailboxServer Exch16MBX2 -ReplayLagTime 00:10:00 -TruncationLagTime 00:15:00 -ActivationPreference 2

Cleanup corrupt files for the Exchange database:

Update-MailboxDatabaseCopy -Identity "DB1\Exch16MBX2" -DeleteExistingFiles

Clean and update the content index database, which is a DAG is seeded from the primary:

Update-MailboxDatabaseCopy -Identity DB1\Exch16MBX2 -CatalogOnly
Previous Post Next Post

نموذج الاتصال