Attach-RMEExchangePublicFolders

From PowerGUI Wiki

Jump to: navigation, search

Establishes a connection to the public folder hierarchy whose Exchange Server you specify.

Contents

Syntax

Attach-RMEExchangePublicFolders [-ServerName] <String> [[-MailboxDn] <String>] [<CommonParameters>]

Detailed Description

The attach-RMEExchangePublicFolders cmdlet establishes a connection to a public folder hierarchy. To establish a connection, specify a live Exchange Server that belongs to the organization whose public folder hierarchy you want to access.



Related Commands

Parameters

Name Description Required? Pipeline Input Default Value
ServerName Specifies the name of the live Exchange Server computer that belongs to the organization whose public folder hierarchy you want to access. true true (ByValue, ByPropertyName)
MailboxDn This parameter specifies the mailbox whose access account will be used to connect to the public folder hierarchy. The MailboxDn parameter can take any of the following values for the mailbox:
  • Mailbox name
  • Legacy Exchange DN
false true (ByPropertyName)

Examples

Example 1

$target = Attach-RMEExchangePublicFolders "/O=SExchange/OU=SiteC/CN=Configuration/CN=Servers/CN=S2K2000C" | Get-RMEFolder "Restored"

C:\PS>Attach-RMEExchangeDB "C:\Data\EDB\EdbSearchTest\EdbSearchTest.edb" | Get-RMEFolder "John Doe\Inbox" | Get-RMEMessage | Restore-RMEMessage -TargetFolder $target

In the first line of this example, the Attach-RMEExchangePublicFolders cmdlet connects to the public folder hierarchy of the Exchange organization to which belongs the Exchange Server with the specified DN. The public folder hierarchy object is then piped to the Get-RMEFolder cmdlet that retrieves the Restored folder from the public folder hierarchy. The Restored folder object is then saved in the $target variable.

In the second line of this example, a connection is established to the EdbSearchTest.edb mailbox store database, and all messages are retrieved from the Inbox folder in the John Doe mailbox. The retrieved messages are then restored to the folder saved in the $target variable.

Example 2

$target = Attach-RMEExchangePublicFolders -ServerName "S2K2000C" -MailboxDn "Administrator" | Get-RMEFolder "Restored"

C:\PS>Attach-RMEExchangeDB "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEFolder "John Doe\Inbox" | Get-RMEMessage | Restore-RMEMessage -TargetFolder $target -DuplicateAction OverwriteIfNewer

In the first line of this example, the Attach-RMEExchangePublicFolders cmdlet uses the access account for the Administrator mailbox to connect to the public folder hierarchy of the Exchange organization to which belongs the Exchange Server named S2K2000C. The public folder hierarchy object is then piped to the Get-RMEFolder cmdlet that retrieves the Restored folder from the public folder hierarchy. The Restored folder object is then saved in the $target variable.

In the second line of this example, a connection is established to the EdbSearchTest.edb mailbox store database, and all messages are retrieved from the Inbox folder in the John Doe mailbox. The retrieved messages are then restored to the folder saved in the $target variable. If the messages being restored are newer than their duplicates in the target folder, the duplicates are overwritten.

Personal tools