Before removing a storage group, all databases must be
removed. After running the Remove-StorageGroup cmdlet, the log files must be manually removed
with Windows Explorer or the del cmdlet. The syntax for Remove-StorageGroup is:
Remove-StorageGroup -Identity < StorageGroupIdParameter > [-DomainController < Fqdn > ]
Removing the storage group from the previous example would look like this:
Get-MailboxDatabase -StorageGroup ???mb001\Storage Group 2??? | Remove-MailboxDatabase
Remove-StorageGroup -Identity ???MB001\Storage Group 2???
Mailbox Stores
Mailbox stores, or databases, are where all of the user and public folder data is stored. Each storage
group can contain up to five databases. Each database can be mounted or un - mounted independently.
Cmdlets used for managing mailbox stores are:
??‘ New-MailboxDatabase
??‘ Set-MailboxDatabase
??‘ Get-MailboxDatabase
??‘ Remove-MailboxDatabase
Creating Databases
The New-MailboxDatabase cmdlet creates the database object. The location of the database file ( .edb )
is mandatory, as is the identity of the storage group where the database will exist:
New-MailboxDatabase -Name < String > -StorageGroup < StorageGroupIdParameter >
[-CopyEdbFilePath < EdbFilePath > ] [-DomainController < Fqdn > ] [-EdbFilePath
< EdbFilePath > ] [-HasLocalCopy < $true | $false > ] [-OfflineAddressBook
< OfflineAddressBookIdParameter > ] [-PublicFolderDatabase
< DatabaseIdParameter > ] [-TemplateInstance < PSObject > ]
New-MailboxDatabase [-Name < String > ] -MailboxDatabaseToRecover
< DatabaseIdParameter > -StorageGroup < StorageGroupIdParameter > [-DomainController
(continued)
Part II: Working with Server Roles
220
< Fqdn > ] [-EdbFilePath < EdbFilePath > ] [-TemplateInstance
< PSObject > ]
New-MailboxDatabase -StorageGroup ???mb100\Storage Group 2??? -Name ???Mailbox Database
2??? -EdbFilePath ???C:\SG2\Database\DB2.
Pages:
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326