Home » Blogs » Export » How to Export Office 365 Mailbox to PST using PowerShell Commands

How to Export Office 365 Mailbox to PST using PowerShell Commands

author
Published By Deepmala Pandey
Published On February 2nd, 2024
Reading Time 15 Minutes Reading
Category Export, Office 365, PST

Microsoft Office 365 is one of the most trustworthy and reliable web-based email applications that store data in the cloud. It renders multiple functionalities, such as file sharing, cloud services, and many more. Nevertheless, there occurs a situation wherein the user needs to export mailbox from Office 365 to PST file.

This is because Office 365 requires internet connectivity to access the data. However, to access the data in offline mode, it is necessary to take a backup of the Office 365 mailbox items. Therefore, this blog will help you understand the process to export Office 365 mailbox to PST format via PowerShell command and the automated tool.

Table of Contents:

Why Do I Need to Export Mailbox from Office 365 to PST File?

Numerous reasons are causing the user to export Office 365 mailbox to PST format. Listed below are some of them:

  • It is observed that hackers attack Office 365 profile and alters the data. Hence, it is important to backup Exchange Online mailbox to PST format.
  • Sometimes users intentional or accidentally deletes the data. So this deleted data can be restored if an appropriate backup is taken for the same.
  • If the data gets corrupt, it is not feasible to retrieve the data manually. Therefore, it is important to archive Office 365 mailbox into PST format.
  • Access to Office 365 account requires adequate internet supply. In case of poor internet connectivity, the backup stored in PST format can be used.

So, after discussing all the possible requirements, let’s understand what would be the best approach through which you can export Office 365 to PST file format.

  • The Powershell Command
  • The eDiscovery Approach
  • The Automated Solution

Let’s understand all of them one by one. So, without further ado, let’s get started exporting.

How to Export Office 365 Mailbox to PST Using PowerShell Command?

As discussed above, there is a need to export mailbox from Office 365 to PST file. To migrate Office 365 mailbox data into PST file. One can use PowerShell command which requires admin permission to execute, which is one of the major drawbacks. However, the manual method using PowerShell command is quite complex and requires sufficient technical expertise.

Here, we have executed this process with the help of an example, wherein the mailbox to be exported is techsupport@teamsystools.com, the new account that is created in Outlook for exporting is freshtechsupport@teamsystools.com. The account that holds the admin rights is hr_admin@teamsystools.com. Follow the below-mentioned steps sequentially to perform them via PowerShell as an administrator.

Step 1: Launch the Connection using MS Exchange Server using PowerShell

1. To initiate the process of exporting Office 365 mailboxes to PST format, run the below command in PowerShell,
“$UserCredential = Get-Credential”

2. In this command, enter the credentials of Office 365 which include the username and password mentioned under the Windows PowerShell Credential Request dialog box. Here, enter the credentials of hr_admin@teamsystools.com in the displayed window.

3. Now, run the below-stated command.
“$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic –AllowRedirection”

4. Then, run the below-mentioned command,
“Import-PSSession $Session”

Step 2: Grant Access to Mailbox for Export Via PowerShell

Now, this example will grant techsupport@teamsystools.com full access to freshtechsupport@teamsystools.com mailbox:

“Add-MailboxPermission – User freshtechsupport@teamsystools.com -Identity techsupport@teamsystools.com -AccessRights FullAccess -InheritanceType All”.

Step 3: Launch Outlook Profile for New Account

In this step, you need to open MS Outlook as freshtechsupport@teamsystools.com and make sure that techsupport@teamsystools.com is available in the mailbox in the left pane. Sometimes, the permission takes seconds or even minutes in order to get applied.

Step 4: Check MS Outlook Configuration Settings

Now in this step, check whether Outlook is ready to be configured to download all the emails within the limited period. Follow the steps below:

  • Firstly, click File menu >> Info page >> Account Settings.
  • Now, click Account Settings again and select the account.
  • After that, click Change button and ensure that Use Cached Exchange Mode option is enabled.

Step 5: Transfer Mailbox to PST Using Import/Export Wizard

  • Open Import/Export wizard to export techsupport@teamsystools.com to PST file. For that, click File menu >> Open & Export >> Import / Export option.
  • Now, select Export to a file from the given options and click Next.
  • Then, choose Outlook Data file (.pst) option and click on the Next button.
  • Select techsupport@teamsystools.com from the given list and click Next. Make sure that Include Subfolders checkbox is selected.
  • Provide a new name to the file and a storage location where the PST file will be stored i.e., c:\tmp\outlook-archive- techsupport@teamsystools.com -20160209.pst.
  • Under Options section, choose either Do not export duplicate items or Replace duplicates with items exported option and click Finish to export mailbox from Office 365 into PST format.
  • Enter the password for the PST file if required else leave it blank if the policy allows and click on the OK button.
  • Now, Outlook will remain inoperative until the export is under process. Therefore, wait to get control in accessing the file.

Step 6: Confirm the Export Process is Successfully Completed

Now, to check whether the Office 365 export process is completed, check the mailbox size on the Server and compare it with the exported PST file size. Follow the below steps to do the same,

  • From the right pane, right-click on the mailbox and select Data File Properties options.
  • Then, go to General tab and click on the Folder size button.
  • After that, choose Server Data tab and note the value mentioned in Total size.
  • Check the properties of the exported PST file. Make sure that the size of this file is comparable to the Total Size value which is mentioned by MS Outlook.

Step 7: When the Export Process Gets Completes

After the export process is successfully completed, you need to remove all the permissions which were granted initially through Powershell. For that, run the below-stated command,

“Remove-MailboxPermission -User freshtechsupport@teamsystools.com -Identity techsupport@teamsystools.com -AccessRights FullAccess”

Step 8: Close PowerShell Session

Finally, the PowerShell session needs to be shut down after all the permissions are removed. To do this, follow the below command:

“Remove-PSSession $Session”

If all the above steps are followed sequentially, a user successfully export mailbox from Office 365 to PST file format, only if you have administrator rights.

What are the Shortcomings of PowerShell Command?

The foremost drawback is it requires Admin permission. If a user does not have the permission, he/she will not be able to perform Office 365 export mailbox to PST process.

Does not maintain data integrity, as the email formats are changed after exporting PST file from Office 365 Online.
It consumes valuable time due to its lengthy steps and must have genuine technical knowledge to perform O365 export process.

Moving to another method, let’s get familiar with its step-by-step operations.

How to Export Mailbox to Office 365 to PST File Format Through eDiscovery Export

  1. Firstly, you need to log in to the Exchange Admin Center. For that, you need to provide credentials for your Office 365 admin account.
    log in to the Exchange Admin Center
  2. Then, go to the Admin Center and select security and compliance from the menu.
    select Security and Compliance to export Office 365 files to PST
  3. Now, from permissions, select eDiscovery Manager
    allow Permissions and then select eDiscovery Manager.
  4. Click the Edit icon to change or add other roles that are necessary for the eDiscovery group.
  5. The role groups come with a few pre-assigned roles by default, like Compliance search, Case Management, Export, Hold, Preview, Review, and RMS Decrypt.
  6. If you’re unable to locate the export role, then just proceed with Step 7 and add the role.
    add the role if you are unable to locate the export role
  7. Now, select more resources from the menu, and a panel containing all the Microsoft resources will emerge. After that, access the Microsoft Purview Compliance Portal. Then, select Content Search from the left panel, and finally click on the New Search Button.
    Select more resources from the menu
  8. Now the window will open, from where you can easily customize every aspect of the content search. Here, you can also give the content search name and description. You can also fill in the necessary information, like location. This allows you to choose which specific user account to export into PST files.
    Select more resources from the menu and give the content search name and description
  9. You can also apply filters like query language/region, keywords/phrases, conditions, time, message fields and properties, etc in the condition bar. This enables you to selectively export the PST file.
    apply different types of filters
  10. After completing all the necessary customizations, just click on Submit and then Done to initiate the eDiscovery right away.
  11. These customizations will then launch the eDiscovery search in the background, and you can monitor its progress by just clicking on the search tab.
    This will launch the eDiscovery
  12. This is where you can view the eDiscovery search status. After the search is finished, just click the Action tab and select Export Results.
    click the Action tab and select Export Results.
  13. Now, you have various options in the window below, from which you can select particular scenarios.
    For example, if you need to export an encrypted file, you can select this option. Additionally, you can also alter the exported results in their entirety before downloading them.

    Note- If you’re unfamiliar with these options, it is advised that you export the data by using the default settings.

    alter the exported results in their entirety before downloading them

  14. Then, hit the export tab, and it will instantly start exporting. Now go to the export tab and select your search, and you can track the status of this process.
    Hit Export, and it will start instantly
  15. After the successful completion of the process, just click on the close button. Then hit the Download results button. Also, make sure to copy the unique export key. Use this key in clickOnce extension when it pops up.
    click on the Close button
  16. The eDiscovery tool will launch when the pop-window will appear. Now, paste the export key there. Now, choose and save the exported PST file to the destination directory you specify. Finally, click on Export to export Office 365 files to PST files.
    click Export to export Office 365 files to PST files

Limitations of the eDiscovery Export

As you see, it’s a long process. So it also has some drawbacks. Before opting for this approach, you must also understand the limitations. Listed below are some of them:

  • It is a time-consuming approach because, in this approach, you need to perform every step.
  • One of the major drawbacks of this method is that it doesn’t allow the selective export feature while exporting data
  • You must be sound technically, as native users might face difficulty in performing these steps.

Now let’s move on to another approach, which is the automated approach.

Comprehensive Approach to Export Mailbox from Office 365 to PST File Format

There is no guaranteed solution using the eDiscovery and PowerShell command to export the mailbox from Office 365 to PST format. Thus, we recommend choosing the best-automated tool, such as the Cloud Backup Tool. This software aims to eliminate all the issues linked with PowerShell and eDiscovery methods.

This tool efficiently exports all data from Office365 to PST file format. Though the manual method is free of charge, it doesn’t provide you with a complete procedure with easy steps.

It also has built-in features, which makes this software easy and experts’ first choice. This allows users to export Office 365 mailboxes into multiple file formats, like exports G-Suite (Workspace) email to PST, Office 365 to MSG, and many more. Additionally, it also provides the feature of saving emails with attachments, contacts, calendars, and tasks.

To know the workings of this software, you first need to Download and Install the software on your system. After this, follow the steps mentioned below.

Free Download Purchase Now

Follow the Steps for Easy Exporting Through This Advanced Software

  1. Firstly, provide Source Platform as Office 365 and Destination as Outlook to export Office 365 to PST.

    Note: Here, you don’t require Outlook to be installed on your system. The destination only indicates that PST is selected for backup.

    select source and destination to export mailbox from office 365 to PST file

  2. Now select the category from the workload selection that you want to export from Office 365 to Outlook
    Select the categories from the workload selection
  3. In the source window, get the Date-Range Filter option. Through this, you can perform a date-based selective export. Then click next.
    apply date-range filter option
  4. Now provide the Office 365 Email ID and Application ID and then Validate.
    provide Office 365 Email ID and Application ID and Validate
  5. Now browse the folder path and set the destination where you want to save your PST files.

    Note- Your folder path is not more than 20 characters.

     browse the backup folder path

  6. From the dropdown menu, select your preferences according to your requirements. The value specifies the maximum size limit for each file(s)
    select the preferences according to the requirement and validate in next step.

    For example: you need to move 11GB of data and you have to choose a 10 GB PST size. In this case, the software will provide two PST files. One of 10 GB and another with the remaining 1 GB.

    If in case the exported data (11 GB) is smaller than the partition size (20, 30, or 40 GB) you will end up with the single PST file of the original size.

    Now if you have a lot of mailboxes to export, let’s say around 200 GB, now you want to export them and you pick a 40 GB partition size. Now, the tool will automatically divide the data into five separate PST files like 40 GB PST files (5* 40=200 GB)

  7. Now, there are multiple ways to add users from the source account
    Import Users: Through this users will import via CSV
    Fetch Users: This will fetch users automatically from the source domain
    Download Template: This feature will download the template.
    Select import user, Fetch Users, Download Template
  8. Now you will find Show Selected toggle which allows you to view the list of selected users. You can also search for a specific mailbox and pick the user to export data.
     you can view the list of selected users
  9. Finally, click on Start Export to export mailbox from Office 365 to PST file.
     click on Start Export to export mailbox from Office 365 to PST file

After performing all the above steps, you will successfully export your Office 365 data.

It is the most trusted software by customers because it export contacts from Office 365. Additionally, it also exports emails, contacts, calendars, and tasks to the PST file format. It does not require technical knowledge to perform the Office 365 backup process. Hence, it is easy for novice users to export the Office 365 mailbox into to PST format.

Additional Information

We learn all about Office 365 but many times we find users need to export Office 365 Archive mailbox to PST file format as well.

Here we also discover the findings for those users who wants to export Office 365 email files to PST and here we come up with an easy solution.

Yes! You can easily export Office 365 Archive to PST through the same automated software.

You can preserve the emails that are no longer utilized but must be kept for legal or regulatory purposes is frequently preserved in this way.

To export Office 365 archive mailbox to PST it is required that you must have the Archive feature enabled for the specific user mailboxes.

So, through this software, you can export Office 365 archive to PST in bulk without any hassle. You just need to follow the same steps as mentioned above by selecting the source as Office 365 Archive and Destination platform as PST file.

Through this software, you can easily export Office 365 archive mailbox to PST with some in-built advanced features.
just you need to provide Source platform as Office 365 Archive and Destination platform as Outlook

 

Some Related FAQs

Q. How to export mailbox from Office 365 to PST file instantly?

Download and Install the advanced software
Provide Source and destination platform to tool
Select the category from the Workload selection
Authentic source and Destination Platforms
Finally, tap Start Export to export

Q. Why should I consider using the professional solution for exporting G Suite emails to PST instead of the manual solution?

Users might opt for a manual solution because of budget constraints, but a manual solution doesn’t maintain data integrity throughout the export process. On the other hand, professional solutions, as mentioned in the article, are fully automated, which not only saves time but also provides technical support services. The software is capable enough to minimize the chance of human error

Q. What are the other file formats that this software supports while exporting from cloud platforms?

The most prominent features of this advanced software allow users to export into PST, MSG, MBOX, PDF, and EML and use the resultant files in their supported applications.

Q. How many mailboxes can I export from a single license of the software?

MSOutLookTools offers user-based licensing. That means users can export only one user per license.

Let’s Wrap Up

Many people have expressed significant concerns about data security, emphasizing the importance of data.

Thus, exporting mailboxes from Office 365 to PST format is important, as it allows for utilization for backup purposes. This blog has endeavored to explain to users the need to export mailbox from Office 365 to PST file format using the Office 365 Export tool.

This tool overcomes all the limitations associated with the PowerShell export method. Additionally, users can download this tool for any version of the Windows operating system.

We are the global leader in End-to-End IT Managed Services, Server Management & Security, and Datacenter Services discipline.

© 2024 MSOutlookTools All Rights Reserved