The New-MailboxExportRequest PowerShell Command: A Comprehensive Guide
Updated On - October 22, 2024 by Deepika Singh | Reading Time: 5 minutes
Exporting data from an Exchange Server mailbox to a personal storage file (PST) is a common task for Exchange administrators. This process is usually perform to backup mailbox data or to migrate data from one Exchange environment to another. In Exchange 2010 and later versions, Microsoft introduced the New-MailboxExportRequest PowerShell command to simplify this process. This command provides a more efficient way to export mailbox data compared to the traditional methods such as using the Exchange Management Console (EMC) or the Export-Mailbox cmdlet.
In this article, we’ll go over the basics of the New-MailboxExportRequest PowerShell command and how it can be use to export mailbox data. We’ll also discuss some best practices and considerations to keep in mind when using this command.
What is the New-MailboxExportRequest PowerShell Command?
New-MailboxExportRequest PowerShell command is a cmdlet in Exchange Server that creates a mailbox export request.
The request specifies the mailbox data to be exported, the destination of the exported data, and the options for the export.
The export request is perform asynchronously in the background, which means the process can continue even if the Exchange Management Shell (EMS) is close or if the administrator logs off.
Once the export request is submitted, the status of the request can be monitored using the Get-MailboxExportRequest and Get-MailboxExportRequestStatistics cmdlets.
The mailbox data exported using this cmdlet is saved in a PST file, which can be imported into other Exchange environments or used as a backup.
How to Use the New-MailboxExportRequest PowerShell Command
Before we dive into the details of using the New-MailboxExportRequest cmdlet, it’s important to understand the basic syntax and parameters of the cmdlet. Here’s the basic syntax:
New-MailboxExportRequest -Mailbox <MailboxIdentity> -FilePath <FilePath> [-BadItemLimit <Unlimited>] [-ConflictResolutionOption <KeepSourceItem | KeepLatestItem | KeepAllConflicts>] [-ContentFilter <ContentFilter>] [-ExcludeDumpster <Boolean>] [-ExcludeFolders <String[]>] [-IncludeFolders <String[]>] [-IsArchive <Boolean>] [-MaxNumberOfItems <Int32>] [-MaxThreads <Int32>] [-MessageClass <String[]>] [-PreserveDeletedItems <Boolean>] [-PreserveFolderHierarchy <Boolean>] [-ResultSize <Unlimited>] [-Verbose]
Let’s take a closer look at each of the parameters:
Mailbox: This parameter specifies the mailbox to be exported. The value can be either the alias, Distinguished Name (DN), or GUID of the mailbox.
FilePath: This parameter specifies the destination of the exported PST file. The file path must be a UNC path, such as \Server\Share\Filename.pst.
BadItemLimit: This parameter specifies the maximum number of items that can be skipped during the export process due to corruption or other issues.
ConflictResolutionOption: This parameter specifies how conflicts between items in the source mailbox and the destination PST file will be resolved. The available options are KeepSourceItem, KeepLatestItem, and KeepAllConflicts.
ContentFilter: This parameter specifies the criteria for the items to be exported. The value can be a search query, such as “Subject:test”.
ExcludeDumpster: This parameter specifies whether to include the Recoverable Items folder in or exclude it from the export process.
IsArchive: This parameter specifies whether to export the primary mailbox or the archive mailbox. The default value is False, meaning the primary mailbox will be exported.
MaxNumberOfItems: This parameter specifies the maximum number of items to be exported. The default value is unlimited.
MaxThreads: This parameter specifies the maximum number of threads to be used for the export process. The default value is 5.
MessageClass: This parameter specifies the message class of the items to be exported. The value should be an array of message class names, such as “IPM.Note”.
PreserveDeletedItems: This parameter specifies whether to preserve deleted items in the exported PST file. The default value is False.
PreserveFolderHierarchy: This parameter specifies whether to preserve the folder hierarchy in the exported PST file. The default value is True.
ResultSize: This parameter specifies the maximum size of the exported PST file. The default value is unlimited.
Verbose: This parameter specifies whether to display verbose information during the export process.
Using the New-MailboxExportRequest PowerShell Command
Now that we’ve gone over the basic syntax and parameters of the New-MailboxExportRequest cmdlet, let’s look at a few examples of how it can be used.
Example 1: Exporting a Mailbox to a PST File
The following example exports the data from the mailbox with the alias “User1” to the PST file “\Server\Share\User1.pst”.
New-MailboxExportRequest -Mailbox User1 -FilePath “\Server\Share\User1.pst”
Example 2: Exporting a Mailbox with a Content Filter
The following example exports only the items with the subject “test” from the mailbox with the alias “User1” to the PST file “\Server\Share\User1.pst”.
New-MailboxExportRequest -Mailbox User1 -FilePath “\Server\Share\User1.pst” -ContentFilter “Subject:test”
Example 3: Exporting a Mailbox with Folder Exclusions
The following example exports the data from the mailbox with the alias “User1” to the PST file “\Server\Share\User1.pst”, excluding the folder “Deleted Items”.
New-MailboxExportRequest -Mailbox User1 -FilePath “\Server\Share\User1.pst” -ExcludeFolders “Deleted Items”
Example 4: Exporting an Archive Mailbox to a PST File
The following example exports the data from the archive mailbox of the user with the alias “User1” to the PST file “\Server\Share\User1.pst”.
New-MailboxExportRequest -Mailbox User1 -FilePath “\Server\Share\User1.pst” -IsArchive $True
Easy way to move Exchange mailbox to PST format
The New-MailboxExportRequest cmdlet is a must-have tool in your arsenal if you work with Microsoft Exchange Server and need to export mailbox data to PST files.
However, due to its complicate and technical process, it is not recommend for newbies. Instaed of this cmdlet, we suggest using Regain EDB Converter tool.
Free Download100% Secure Buy NowPrice: $99
The tool is an automated tool that allows users to move Exchange mailbox into different file formats and cloud servers.
Its versatility and functionality make it a valuable tool for administrators and IT professionals alike, allowing you to easily and efficiently manage mailbox exports. Whether you’re backing up data, migrating mailboxes, or performing other tasks, the Regain EDB to PST converter can help you get the job done quickly and efficiently.
Steps to use the Regain Software to move EDB to PST
- Install and open the software in your system.
- On to the menu bar, click Open and browse EDB file.
- Have a preview and click Export and Choose the file format.
- Browse folder to save resultant file and use other options.
- At last, click Export and the software will start the export.
Features of Regain EDB to PST converter tool
- Conversion of EDB to PST format: The tool allows users to convert Exchange EDB files to Outlook PST format, which allow you to import data from edb to Outlook for viewing and accessibility.
- Preview of recoverable data: The tool provides a preview of the recoverable data before conversion, allowing users to select only the required items for conversion.
- Selective conversion: The tool allows users to select specific mailboxes, folders, or items for conversion, rather than converting the entire EDB file, saving time and storage space.
- Supports different EDB versions: The tool supports various versions of Exchange Server EDB files, including Exchange Server 2003, 2007, 2010, 2013, 2016, and 2019.
- Maintains data integrity: The tool maintains the original structure, formatting, and properties of the data during the conversion process, ensuring that the converted PST file is an exact replica of the original EDB file.
- Easy to use: The tool has a simple and user-friendly interface, making it easy for users to perform the conversion process, even without technical expertise.
- Batch conversion: The tool allows users to convert multiple EDB files to PST format in a single batch, making it an efficient solution for organizations with large amounts of data.
Conclusion
The New-MailboxExportRequest PowerShell command is a powerful tool for exporting mailbox data to PST files. However, it is complex and not everyone can use it. Regain EDB to PST converter provides an efficient and flexible way to perform mailbox exports. It is an essential tool for administrators and IT professionals. With its many features, the tool can fit the specific needs of any organization. Whatever your export need is, the Regain EDB to PST converter tool is a convenient solution.
Related Articles:
- Your Mailbox has been Temporarily Moved on Exchange Server
- Manual Methods to Export Exchange Archive Mailbox to PST
- Migrate Exchange Server Mailboxes to Office 365 | 2019
- Export Exchange 2016 mailbox to Office 365
- Export Exchange 2016 mailbox to Gmail
- Fixing the “Mailbox Export Request stuck in queued” error in Exchange
- Extract Exchange Mailbox Data from EDB to PST