Get-EmcMailboxDatabaseCopy

Gets one or more mailbox database copy objects from a server or organization.

 

Syntax

 

Parameters

-ID <String>

Attributes: Optional, Position: 1

Specifies the mailbox database name or ID. Wildcards are permitted. It is a positional parameter (position = 1).

 

-ExchangeSystem <IExchangeApplicationSystem>

Attributes: Optional, Position: named

Specifies the Exchange system object from which to retrieve mailbox database copy information.

 

-Silent <SwitchParameter>

Attributes: Optional, Position: named

Turns off all the informational and verbose messages. However, it still displays errors.

 

-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.

 

-HostDisk <Disk>

Attributes: Optional, Position: named

Specifies the host disk associated with the mailbox database.

 

-DatabaseAvailabilityGroup <DatabaseAvailabilityGroup>

Attributes: Optional, Position: named

Specifies the DAG object from which to retrieve mailbox database copy information.

 

-MailboxServer <MailboxServer>

Attributes: Optional, Position: named

Specifies the name of the mailbox server object from which to retrieve mailbox database copy information.

 

-MailboxDatabase <MailboxDatabase>

Attributes: Optional, Position: named

Specifies the name of the mailbox database of which to retrieve mailbox database copy 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 --------------

:\PS>$ms = Get-EmcMailboxServer MS1

C:\PS>Get-EmcMailboxDatabaseCopy  -MailboxServer $ms

This example gets all the mailbox database copies on the MS1 mailbox database server.

 

-------------- Example 2 --------------

C:\PS>$exchange = Get-EmcExchangeSystem exchange1

C:\PS>Get-EmcMailboxDatabaseCopy  -ExchangeSystem $exchange

This example gets all the mailbox database copies on the exchange1 exchange system.

 

-------------- Example 3 --------------

C:\PS>$dag = Get-EmcDatabaseAvailabilityGroup DAG1

C:\PS>Get-EmcMailboxDatabaseCopy  -DatabaseAvailabilityGroup $dag

This example gets all the mailbox database copies on the DAG1 database available group.

 

-------------- Example 4 --------------

C:\PS>$db = Get-EmcMailboxDatabase MBDB1

C:\PS>Get-EmcMailboxDatabaseCopy  -MailboxDatabase $db

This example gets all the mailbox database copies of the MBDB1 mailbox database.

 

-------------- 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-EmcMailboxDatabaseCopy -Lun $lun

C:\PS>Get-EmcMailboxDatabaseCopy -HostDisk $disk

This example gets all the mailbox database copies for a specified LUN or host disk.