Tuesday, January 8, 2008

Creating SG's/DB's in Exchange 2007

Because of the path match requirements of CCR and SCR, most paths will not be to the default location. It is much easier to create the SG's and DB's with powershell and specify the path's then to use the GUI (too many clicks). I keep the following in a notepad doc and use find and replace for "executive 2gb" any time i want to create a new SG/DB.


New-StorageGroup -Name "Executive 2GB" -server "mailbox01"-SystemFolderPath "E:\databases\Executive 2GB" -LogFolderPath "E:\logfiles\Executive 2GB"

new-mailboxdatabase -StorageGroup 'mailbox01\Executive 2GB' -Name 'Executive 2GB' -EdbFilePath 'E:\databases\Executive 2GB\Executive 2GB.edb'

Mount-database "Executive 2GB"

No comments: