Restore-RMEFolder
From PowerGUI Wiki
Restores specific folders.
Contents |
Syntax
Restore-RMEFolder [-SourceFolders] <Object> [[-TargetFolder] <IMapiContainer>] [[-TargetPath] <String>] [[-NamePrefix] <String>] -AnsiPst [[-FolderPath] <String>] [[-NamingOptions] <TargetNamingOptions>] -ApplySecurity [-DuplicateAction <DuplicateAction>] [<CommonParameters>]
Detailed Description
The Restore-RMEFolder cmdlet restores specific folders.
Related Commands
Parameters
| Name | Description | Required? | Pipeline Input | Default Value |
|---|---|---|---|---|
| SourceFolders | Specifies the folders to be restored. Enter a variable that contains the folder objects or type a command or expression that gets the folder objects. | true | true (ByValue, ByPropertyName) | |
| TargetFolder | Specifies the target folder to restore the folders to. Enter a variable that contains the target folder object or type a command or expression that gets the target folder object. | false | false | |
| TargetPath | Specifies the name of the folder where target Personal Folders (.pst) files will be generated. This parameter is ignored unless you restore folders to new Personal Folders (.pst) files. | false | false | |
| NamePrefix | Specifies the custom prefix to be added to the names of generated target Personal Folders (.pst) files. This parameter is ignored unless you restore folders to new Personal Folders (.pst) files. | false | false | |
| AnsiPst | Specifies to restore each folder to a new individual Personal Folders (.pst) file in the ANSI format. | false | false | |
| FolderPath | Specifies the path to the target folder in a storage or file where you want to place the restored folders. | false | false | |
| NamingOptions | Specifies naming options for the generated target Personal Folders (.pst) files.
This parameter can take one or both of the following values:
If specifying both values, delimit them with a comma. This parameter is ignored unless you restore folders to new Personal Folders (.pst) files. | false | false | |
| ApplySecurity | Applies access permissions to the new target Personal Folders (.pst) files generated in the result of the restore operation. | false | false | |
| DuplicateAction | Specifies how to handle message duplicates during the restore operation.
This parameter can take one of the following values:
| false | false |
Examples
Example 1
Attach-RMEExchangeDB "C:\Data\Edb\EdbSearchTest\EdbSearchTest.edb" | Get-RMEFolder "John Doe\Inbox" | Restore-RMEFolder -TargetPath "C:\Data\Restored\Pst"
The Attach-RMEExchangeDB cmdlet connects to the EdbSearchTest.edb mailbox store database and pipes it to the Get-RMEFolder cmdlet that retrieves the Inbox folder from the John Doe mailbox. The Restore-RMEFolder cmdlet then restores the retrieved Inbox folder to a new .pst file in the "C:\Data\Restored\Pst" folder.
