Home » Blog » Office 365 » Know PowerShell Command to Export Office 365 Mailbox to PST
Office 365

Know PowerShell Command to Export Office 365 Mailbox to PST

author
Published By Chirag Arora
admin
Approved By Anuraag Singh
Published On May 14th, 2024
Reading Time 5 Minutes Reading

There are various methods to export Office 365 Mailbox to PST depending on the size of your mailboxes that you are exporting, or have any public folder. It’s very easy to switch to Office 365 and all you need to do is to purchase the licenses from which some commonly used are: Microsoft 365 Basic or Microsoft 365 Standard. Create a user and provide a license and start using Office 365 services but the major problem is how to export Office 365 emails with no disruption to the users by which the business is not affected.

So, we can use a tried and tested professional utility or PowerShell commands to export Office 365 mailbox to PST.

5 Quick Steps to Export Office 365 Mailbox to PST

  • Step 1. Download & Install the tool
  • Step 2. Login with Office 365 credentials
  • Step 3. Go to Export & SelectFile format
  • Step 4. Choose Location to save PST
  • Step 5. Hit Start Backup button

Let’s have a look at the requirements for conversion.

Requirements

Before executing the PowerShell command to export Office 365 mailbox to PST let’s makes sure that you have all the following requirements for the conversion:

  • The user is an eDiscovery Manager or an eDiscovery Administrator – this is the default role to execute the conversion process.
  • You also have a remote connection to the Microsoft 365 Security and Compliance Center.

PowerShell Command to Export Office 365 Mailbox to PST

Before converting the mailbox to PST one needs to use the New-ComplianceSearch cmdlet to build a search. For Example:

New-ComplianceSearch “your_descriptive_name” –ExchangeLocation all | Start-ComplianceSearch

Then you need to export the data returned by the search by the following command:

New-ComplianceSearchAction “your_descriptive_name” –Export –Format Fxstream

Wait till the exporting process is completed then you need to run the Get-ComplimanceSearchAction cmdlet to find out the URL needed to download the converted data by the following command:

Get-ComplianceSearchAction “your_descriptive_name_export” -IncludeCredential | FL

The Results consist up of two parts of information to download the resultant file: the Container URL and the SAS token. They combine to form a URL.

To use the PowerShell method, you should have Exchange Server 2010 consisting of Service Pack 1. Open the EMS and use the PowerShell command to export Office 365 Mailbox to PST.

New-MailboxExportRequest -mailbox user1-filepath\\myserver\documentsfolder\name.pst

While exporting with this method you cannot use the direct path such as E:\folder\name.pst. You have to follow the path listed on the network.

You also need to check the user permission this can be easily done through Exchange Admin.

Note: To include folder you need to perform add-includefolder along with name of the folder in inverted commas and the exclude folder you need to use –excludefolder name with inverted commas.

For example:

New-MailboxExportRequest -Mailbox ‘name’ -Filepath “\\SRV01\PSTFiles\name.pst”-IncludeFolders “#SentItems#”

New-MailboxExportRequest -Mailbox ‘name’ -Filepath “\\SRV01\PSTFiles\name.pst”-ExcludeFolders “#Drafts#”

One can also use the below to export data from a selected period of time.

New-MailboxExportRequest -ContentFilter {(Received -lt ’05/05/2020′) -and (Received -gt ’05/05/2019′)} -Mailbox ‘Name’ -Filepath \\SRV01\PSTFiles\Name.pst

Wait for a while once the exported process is completed.

Consequences of Using the Above Method

  • It is a complicated to understand and lengthy method.
  • One should have much technical knowledge to execute the PowerShell conversion process.
  • A single mistake in a single step leads to starting the whole process from Step 1.
  • It requires technical assistance.

Automated Tool to Export Office 365 Mailbox to PST

The above-mentioned manual solution to export crucial data using the PowerShell command might not be the go-to solution. It is due to complexities associated with the entire solution. One wrong command and you might end up losing all the progress that you have made. So, to get rid of all these complexities, there is an automated solution as well.

This solution will help users to export the entire O365 mailbox into PST in just a few steps. The tool makes sure that data integrity is maintained throughout the process. Additionally, the software provides multiple export options that make it one of the best tools to export Office 365 mailbox to PST format. This is a Mac-based tool that you can run on a Mac-based machine.

Step 1. Download and install the Most Reliable Microsoft Office 365 Backup Tool.

For Windows

If you are a Windows user, then don’t worry, you can also download the below mentioned tool and export your Microsoft 365 data on Windows machine as well.

Step 2. Fill in the required credentials of Office 365 account to the panel.

Step 3. Go to the Export format option to select the desired file format.

Step 4. Choose the location for your resultant file.

Step 5. Hit the Start backup button to initiate the process.

Features of the Automated Tool

  • Allow the user to convert contacts and calendars to ICS and VCF file formats.
  • Conserve the original structure of the file and the folder throughout the process.
  • Authorize the user to delete the data from the server using the delete after downloading option.
  • Assist you to save Office 365 Outlook emails to the system.
  • Instruct a user to import Office 365 contacts to Outlook.
  • Permits the user to backup their Office 365 data.
  • Also, allow the user to pause and resume the ongoing process.

You will also love to know: How to Transfer Office 365 Mailbox to Another Account Mac – Complete Solution

Conclusion

Exporting Office 365 Mailbox to PST using PowerShell Command is a complicated and time-consuming method. A non-technical user is unable to use the PowerShell command to export Office 365 mailbox to PST and even a single mistake in an individual step leads to begin the process from Step 1. So we provide you with the best solution by which you can easily export Office 365 mailbox in a trouble-free manner.

What Makes MacWareTools Different from Others?

2M+

Happy Clients

15+

Products

80+

Countries

5+

Years of Experience