Catalog-RMEBackup -MediaType Files - MediaNames \\intranet.corp\Backups\ ExchangeBackup_02072013.bkf
|
This command catalogs the backup file named ExchangeBackup-02072013.bkf and located on the network share \\intranet.corp\Backup. |
Get-RMEExchangeServer -TargetDomain "dom.europe.corp" | Get-RMEMailbox - MailboxNameInclude "Doe" | Get-RMEMessage -SearchIn Subject -Text "Contract" | Delete-RMEMessage
|
The Get-RMEExchangeServer cmdlet gets all Exchange Server objects located in the dom.europe.corp domain.
These objects are then piped to the Get-RMEMailbox cmdlet that retrieves the mailbox whose name includes the word Doe.
The mailbox object is then passed to the Get- RMEMessage cmdlet that retrieves the message whose subject includes the word Contract.
Finally, the Delete-RMEMessage cmdlet deletes the retrieved message. |
Extract-RMEExchangeDB -MediaType Files - MediaNames "C:\Exchange\BKF\FullExchangeBackup.bkf" -ExtractPath "C:\Exchange\Extracted Databases" | Attach-RMEExchangeDB | Get- RMEMailbox | Restore-RMEMailbox - TargetPath "C:\Data\Exported\Pst"
|
The Extract-RMEExchangeDB cmdlet extracts the Exchange Server database from the FullExchangeBackup.bkf file to the Extracted Databases folder.
The Attach-RMEExchangeDB cmdlet then connects to the extracted database and pipes it to the Get- RMEMailbox cmdlet, which gets all mailboxes from the database.
The mailbox objects are then piped to the Restore- RMEMailbox cmdlet, which restores each mailbox to an individual Personal Folders (.pst) file in the
C:\Data\Exported\Pst folder. |
Import-RMEPersonalFolders -Items C:\PSTFiles -TargetDomain mydomain.com - NameMatchType Equals -TargetType OnPremise -ImportLocation Root
|
This command imports messages from all Personal Folders (.pst) files found in the root of the C:\PSTFiles folder.
The messages are imported to the on-premises Exchange Server mailboxes hosted in the Active Directory domain named mydomain.com. The domain is accessed in the security context of the user account under which the Management Shell is running.
The messages are imported from each source .pst file into the root of the target online mailbox whose alias, display name, or sAMAccountName value is identical to the .pst file name or file owner's name. |