Attach-RMEExchangeDB

From PowerGUI Wiki

Jump to: navigation, search

Establishes a connection to the specified Exchange Server database.

Contents

Syntax

Attach-RMEExchangeDB [[-EdbPath] <String>] [<CommonParameters>]

Detailed Description

The Attach-RMEExchnageDB cmdlet establishes a connection to the offline Exchange Server database you specify.



Related Commands

Parameters

Name Description Required? Pipeline Input Default Value
EdbPath Specifies the path to the .edb file that belongs to the Exchange Server database you want to connect to. false true (ByValue, ByPropertyName)

Examples

Example 1

Attach-RMEExchangeDB -EdbPath "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEMessage | Export-RMEMessage -ExportPath "C:\Data\Exported\Msg" -Type Msg

The Attach-RMEExchangeDB cmdlet connects to the EdbSearchTest.edb mailbox store database and pipes it to the Get-RMEMessage cmdlet. The Get-RMEMessage cmdlet then retrieves all messages from the mailbox store database and pipes them to the Export-RMEMessage cmdlet that saves each message as a .msg file in the “C:\Data\Exported\Msg” folder.

Example 2

Attach-RMEExchangeDB "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEMessage -SearchIn Subject -Text "test" | Export-RMEMessage -ExportPath "C:\Data\Exported\AM" -Type ArchiveManager -ArchiveManagerVersion 3.8

The Attach-RMEExchangeDB cmdlet connects to the EdbSearchTest.edb mailbox store database and pipes it to the Get-RMEMessage cmdlet. The Get-RMEMessage cmdlet then retrieves all messages whose subject contains the word "test" and pipes them to the Export-RMEMessage cmdlet that saves the messages in the Quest Archive Manager drop directory (C:\Data\Exported\AM) for their subsequent import into Archive Manager version 3.8.

Example 3

Attach-RMEExchangeDB -EdbPath "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEMessage -SearchIn Subject -Text "test" | Export-RMEMessage -ExportPath "C:\Data\Exported\AM" -Type ArchiveManager -ArchiveManagerVersion 4.0

The Attach-RMEExchangeDB cmdlet connects to the EdbSearchTest.edb mailbox store database and pipes it to the Get-RMEMessage cmdlet. The Get-RMEMessage cmdlet then retrieves all messages whose subject contains the word "test" and pipes them to the Export-RMEMessage cmdlet that saves the messages in the Quest Archive Manager drop directory (C:\Data\Exported\AM) for their subsequent import into Archive Manager version 4.0.

Example 4

Attach-RMEExchangeDB "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEMailbox -MailboxNameInclude "John Doe" | Restore-RMEMailbox -TargetPath "C:\Data\Exported\Pst"

The Attach-RMEExchangeDB cmdlet connects to the EdbSearchTest.edb mailbox store database and pipes it to the Get-RMEMailbox cmdlet that retrieves the mailbox whose name is John Doe. The Restore-RMEMailbox cmdlet then restores the retrieved mailbox to a new .pst file in the "C:\Data\Exported\Pst" folder.

Personal tools