Windows Server 2008

Creating Exchange 2007 Storage Groups and Mailbox Database’s using Powershell


You can use the Exchange Powershell Managment console to create storage groups and databases. To do this you would use the following commands:

[PS] C:\Windows\System32>new-storagegroup "Second Storage Group" -server EXCHANGE

This will result in the output below telling us that this has been successfully created.

Name                      Server            Replicated        Recovery
—-                      ——            ———-        ——–
Second Storage Group      EXCHANGE          None              False

Next we need to create the Mailbox  Database. The powershell command for this would be:

new-mailboxdatabase -StorageGroup ‘EXCHANGE\Second Storage Group’ -Name ‘Second Database’ -EdbFilePath ‘C:\Program Files\Microsoft\Exchange Server\Mailbox\Second Storage Group\Second Database.edb’

And then we mount it:

mount-database -Identity ‘CN=Second Database,CN=Second Storage Group,CN=InformationStore,CN=EXCHANGE,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=TESTLAB,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=testlab,DC=local’

And then to verify that it is already created and mounted:


Be Sociable, Share!

One Commnet on “Creating Exchange 2007 Storage Groups and Mailbox Database’s using Powershell

  1. That script looks like it would work well as a PowerWF workflow. PowerWF visualizes PowerShell scripts and converts them into activities within the workflow. We are considering doing an exchange activity pack for PowerWF but need to find some early adopters to see if the product adds value already and to make suggestions for how to optimize it for Exchange Admins.

Comments are closed.