Gets one or more mailbox database objects from a server, forest, or organization.
Syntax
Get-EmcMailboxDatabase [[-ID] <String>] [-ExchangeSystem <IExchangeApplicationSystem>] [-Silent] [<CommonParameters>]
Get-EmcMailboxDatabase [[-ID] <String>] [-ExchangeSystem <IExchangeApplicationSystem>] [-Silent] [-HostDisk <Disk>] [<CommonParameters>]
Get-EmcMailboxDatabase [[-ID] <String>] [-ExchangeSystem <IExchangeApplicationSystem>] [-Silent] [-Lun <Lun>] [<CommonParameters>]
Get-EmcMailboxDatabase [[-ID] <String>] [-Silent] [-DatabaseAvailabilityGroup <DatabaseAvailabilityGroup>] [<CommonParameters>]
Get-EmcMailboxDatabase [[-ID] <String>] [-Silent] [-MailboxServer <MailboxServer>] [<CommonParameters>]
Get-EmcMailboxDatabase [[-ID] <String>] [-Silent] [-MailboxDatabaseCopy <MailboxDatabaseCopy>] [<CommonParameters>]
Parameters
-ID <String>
Attributes: Optional, Position: 1
Specifies the mailbox database name or ID. Wildcards are permitted.
-ExchangeSystem <IExchangeApplicationSystem>
Attributes: Optional, Position: named
Specifies the Exchange system object from which to retrieve mailbox database information.
-Silent <SwitchParameter>
Attributes: Optional, Position: named
Turns off all the informational and verbose messages. However, it still displays errors.
-HostDisk <Disk>
Attributes: Optional, Position: named
Specifies the host disk associated with the mailbox database.
-Lun <Lun>
Attributes: Optional, Position: named
Specifies the ESI LUN object, which can be obtained by using the ESI Storage System object or by using the Get-EmcLun cmdlet. It specifies the LUN on which the mailbox database is created.
-DatabaseAvailabilityGroup <DatabaseAvailabilityGroup>
Attributes: Optional, Position: named
Specifies the DAG object from which to retrieve mailbox database information.
-MailboxServer <MailboxServer>
Attributes: Optional, Position: named
Specifies the name of the mailbox server from which to retrieve mailbox database information.
-MailboxDatabaseCopy <MailboxDatabaseCopy>
Attributes: Optional, Position: named
Specifies the mailbox database copy object to retrieve mailbox database information.
<CommonParameters>
This cmdlet supports these common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, and OutVariable. Type get-help about_commonparameters for more details.
Examples
-------------- Example 1 --------------
C:\PS>$ms = Get-EmcMailboxServer MS1
C:\PS>Get-EmcMailboxDatabase -Id MailboxDatabase01 -Server $ms
This example gets information about MailboxDatabase01 on the MS1 mailbox database server.
-------------- Example 2 --------------
C:\PS>$dag = Get-EmcDatabaseAvailabilityGroup TestDAG
C:\PS>Get-EmcMailboxDatabase -DatabaseAvailabilityGroup $dag
This example gets information about all mailbox databases in TestDAG.
-------------- Example 3 --------------
C:\PS>$exchange = Get-EmcExchangeSystem
C:\PS>Get-EmcMailboxDatabase -ExchangeSystem $exchange
This example gets information about all mailbox databases in the Exchange system.
-------------- Example 4 --------------
C:\PS>$databasecopy = Get-EmcMailboxDatabasecopy db1\MS2
C:\PS>Get-EmcMailboxDatabase -MailboxDatabaseCopy $databasecopy
This example gets information about all mailbox databases associated with the mailbox database copy.
-------------- Example 5 --------------
C:\PS>$lun = Get-EmcLun testlun
C:\PS>$ms = Get-EmcMailboxServer MS1
C:\PS>$h = Get-EmcHostSystem -MailboxServer $ms
C:\PS>Set-EmcLunAccess -Lun $lun -HostSystem $h -Available
C:\PS>$disk = Get-EmcHostDisk -Lun $lun -HostSystem $h
C:\PS>Initialize-EmcHostDisk -HostSystem $h -HostDisk $disk
C:\PS>$vol = New-EmcVolume -HostSystem $h -HostDisk $disk -Label “New Volume”
C:\PS>Set-EmcVolumeMountPoint -HostSystem $h -DriveLetter V -Volume $vol
C:\PS>New-EmcMailboxDatabase -Name MailboxDatabase01 -MailboxServer $ms -EdbFilePath “V:\DatabaseFiles\MailboxDatabase01.edb” -LogFolderPath “V:\LogFiles”
C:\PS>Get-EmcMailboxDatabase -Lun $lun
C:\PS>Get-EmcMailboxDatabase -HostDisk $disk
This example gets information about mailbox databases that reside on the LUN or host disk.