|
Parameter
|
Required
|
Type
|
Description
|
|---|
|
Identity
|
Required
|
Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter
|
The Identity parameter specifies the mailbox from which to export contents. You can use the following values:
-
Alias
-
SMTP address
-
Display name
If the Get-Mailbox command object is piped, this parameter isn't required.
|
|
PSTFolderPath
|
Required
|
Microsoft.Exchange.Data.LongPath
|
The PSTFolderPath parameter specifies the path of the .pst file to which data is exported.
|
|
TargetFolder
|
Required
|
System.String
|
The TargetFolder parameter specifies the top-level mailbox folder that's created on the mailbox specified by the TargetMailbox parameter. This folder contains a subfolder called Recovered Data - <source mailbox alias> - <date time stamp>. The subfolder contains the exported data. If the target folder that you specify already exists on the target mailbox, the exported data is added to the existing folder. If the target folder doesn't exist, it's created.
|
|
TargetMailbox
|
Required
|
Microsoft.Exchange.Configuration.Tasks.MailboxIdParameter
|
The TargetMailbox parameter specifies the mailbox where the target folder is created. The mailbox that you specify must exist for the command to complete successfully.
|
|
AllContentKeywords
|
Optional
|
System.String[]
|
The AllContentKeywords parameter specifies the keywords of the content to include in the move. If the command finds a keyword that you specify in the message body, attachment content, or subject, it exports those messages.
Note:
This is different from using both the ContentKeywords and SubjectKeywords parameters. If you use both the ContentKeywords and SubjectKeywords parameters, the command exports only those messages that have both the keyword that you specify for the ContentKeywords parameter in the message body or attachment content, and the keyword you specify for the SubjectKeywords parameter in the subject.
|
|
AllowMerge
|
Optional
|
System.Management.Automation.SwitchParameter
|
The AllowMerge parameter specifies that the content that's exported is merged into the target folder to avoid duplicates. If you specify the AllowMerge parameter, the name of the subfolder to which content is exported doesn't include a date-time stamp. You can export data to the same target folder and subfolder multiple times by using the AllowMerge parameter.
|
|
AttachmentFilenames
|
Optional
|
System.String[]
|
The AttachmentFilenames parameter specifies the filter for attachments. You can use wildcard characters in the string. For example, you can use *.txt to export items that have a .txt extension.
|
|
BadItemLimit
|
Optional
|
System.Int32
|
The BadItemLimit parameter specifies the number of corrupted items in a mailbox to skip before the export operation fails.
|
|
Confirm
|
Optional
|
System.Management.Automation.SwitchParameter
|
The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.
|
|
ContentKeywords
|
Optional
|
System.String[]
|
The ContentKeywords parameter specifies the keywords of the content to include in the move. If the command finds a keyword that you specify in the message body or in the attachment content, it exports those messages.
|
|
DeleteAssociatedMessages
|
Optional
|
System.Management.Automation.SwitchParameter
|
The DeleteAssociatedMessages parameter specifies that associated messages are deleted. Associated messages contain hidden data with information about rules, views, and forms.
If you use the DeleteAssociatedMessages parameter and don't specify the TargetMailbox and TargetFolder parameters, or the PSTFolderPath parameter, no content is exported.
|
|
DeleteContent
|
Optional
|
System.Management.Automation.SwitchParameter
|
The DeleteContent parameter specifies the option to delete the content from the source mailbox after it has been exported to a folder. The source folder isn't deleted.
|
|
EndDate
|
Optional
|
System.DateTime
|
The EndDate parameter specifies the end date for filtering content that's exported from the source mailbox. Only items in the mailbox whose date is prior to or the same as the end date are exported. When you enter a specific date, use the short date format defined in the Regional Options settings configured on the local computer. For example, if your computer is configured to use the short date format mm/dd/yyyy, enter 03/01/2010 to specify March 1, 2010.
|
|
ExcludeFolders
|
Optional
|
Microsoft.Exchange.Data.MapiFolderPath[]
|
The ExcludeFolders parameter specifies the list of folders to exclude during the export.
|
|
GlobalCatalog
|
Optional
|
Microsoft.Exchange.Data.Fqdn
|
The GlobalCatalog parameter specifies the global catalog to use to search for the target mailbox.
|
|
IncludeAssociatedMessages
|
Optional
|
System.Management.Automation.SwitchParameter
|
The IncludeAssociatedMessages parameter specifies that associated messages are included in the export. Associated messages contain hidden data with information about rules, views, and forms. By default, associated messages aren't included in an export.
|
|
IncludeFolders
|
Optional
|
Microsoft.Exchange.Data.MapiFolderPath[]
|
The IncludeFolders parameter specifies the list of folders to include during the export.
|
|
Locale
|
Optional
|
System.Globalization.CultureInfo
|
The Locale parameter specifies the locale of messages to export. The command exports only messages with the locale that you specify.
|
|
MaxThreads
|
Optional
|
System.Int32
|
The MaxThreads parameter specifies the maximum number of threads to use. The default value is 4.
|
|
RecipientKeywords
|
Optional
|
System.String[]
|
The RecipientKeywords parameter specifies recipient e-mail addresses or display names. If the command finds a message with a recipient that's the same as the recipient keyword that you specified, it exports the message.
If the recipient keyword that you specify is the same as a distribution group that's a recipient of a message, the message is exported. The command doesn't expand distribution groups to compare the recipient keywords that you specify to the members of a distribution group that's a recipient of a message.
|
|
SenderKeywords
|
Optional
|
System.String[]
|
The SenderKeywords parameter specifies sender e-mail addresses or display names. If the command finds a message with a sender that's the same as a sender keyword that you specify, it exports the message.
|
|
StartDate
|
Optional
|
System.DateTime
|
The StartDate parameter specifies the start date for filtering content that's exported from the source mailbox. Only items in the mailbox whose date is later than the start date are exported. When you enter a specific date, use the short date format defined in the Regional Options settings configured on the local computer. For example, if your computer is configured to use the short date format mm/dd/yyyy, enter 03/01/2010 to specify March 1, 2010.
|
|
SubjectKeywords
|
Optional
|
System.String[]
|
The SubjectKeywords parameter specifies the keyword filters for subjects of items in the source mailbox.
|
|
ValidateOnly
|
Optional
|
System.Management.Automation.SwitchParameter
|
The ValidateOnly parameter provides the option to validate the export without exporting the data. The ValidateOnly parameter validates any prerequisites for the command.
Note:
If you run the Export-Mailbox command with this parameter, the command doesn't apply any filters to the messages. It only checks whether the source and target mailboxes exist.
|
|
WhatIf
|
Optional
|
System.Management.Automation.SwitchParameter
|
The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.
|