In Exchange it is easy to create a database with the Exchange Admin Center but you can create it very easily with PowerShell.

Most Exchange Admins use mount-points to store an Exchange database and logs as this is stored on a SAN and not on the Server itself.

To create a database and log directory use the following Powershell command:

  • New-MailboxDatabase -Server Exchange-2019 -Name “STORE1” -EdbFilePath C:\MBXDATA\Store1\STORE1.edb -LogFolderPath C:\MBXDATA\Store1\Logs
Exchange 2019 - create a new mailbox with powershell

Once it is created you need to restart the Exchange Information Store Service so it can take effect.

After that you need to mount the database.

Hope it helps.

    wpChatIcon

    Discover more from Everything-PowerShell

    Subscribe now to keep reading and get access to the full archive.

    Continue reading