Home » Blog » Office 365 » Import PST to Online Archive Office 365 Powershell: Step– By- Step Process

Import PST to Online Archive Office 365 Powershell: Step– By- Step Process

import pst to online archive office 365 powershell
Nilesh Kumar | Modified: 2021-09-21T07:52:20+05:30|Office 365 | 6 Minutes Reading

When it comes to cloud-based platform, Office 365 is used by numerous organizations. Basically, Microsoft Office 365 is a Software as a Service solution which includes Microsoft Office and other services – email and collaboration. Due to the feature-rich nature and performance, Office 365 has become the first choice of the users as well as organizations. However, some situations occur in which the user needs to import PST to Online Archive in Office 365.

Now, the question crops up, is it possible to move PST file to Office 365 Online Archive folder? Yes, the users can easily import with the help of PowerShell commands. In this blog, we are going to discuss step by step process to move PST to Online Archive folder in Office 365 using PowerShell commands.

Instant Solution: To Import  PST File into Office 365 without any hassle, use the below tool. 

Download Tool

Before Moving Further, Some Prerequisites are:

  • An admin account on Office 365 tenant is required
  • Have Import Export Mailbox admin role
  • Having high upload bandwidth is an advantage

Import PST to Online Archive in Office 365 via Powershell Commands

To import PST file in Office 365, Microsoft provides Import Service feature built on the Azure storage.

Step 1: Storage Provisioning

1. In Office 365, click on Import Service > Data Migration

2. Now, you need to click on Upload PST option


3. After that, click on the + sign and select Upload email messages (PST files) option

4. For the first import, the Storage account will be created. For that, you need to click on ‘Show network upload SAS URL’. This URL will contain:

  • Storage Account Name
  • Container Name
  • Shared Access Signature: It contains sv – storage service version, se – expiration date, sr – storage type, si – storage identifier, sig – signature. This URL is used by Azure AzCopy Tool to upload PST.

Step 2: Upload PST

After the completion of the storage provisioning process, the user can begin the PST upload procedure. To upload PST, the user is having two options either he/she can use AzCopy tool (Command Line Tool) or Azure Storage Explorer (Graphical tool).

1. First, you need to connect to the Azure Storage Explorer


2. Now, enter the Shared Access Signature (SAS) URL or an account key

3. You will be able to see the Connection Summary after entering the required SAS URL

4. Next, you can import PST using Azure Storage Explorer Tool

5. After that, you can check the list of files present on Azure via using

New-AzureStorageContext -SasToken ($SharedAccessSignatureURL -split ‘\?’ | Select-Object -Last 1) -StorageAccountName ($SharedAccessSignatureURL -split ‘\.’ -split ‘//’)[1] | Get-AzureStorageBlob -Container ($SharedAccessSignatureURL -split ‘\?’ -split ‘/’)[3] | Select-Object -ExpandProperty Name

Step 3: Mapping the File

Once you have uploaded the PST file to Azure Storage, you need to build a CSV file. This CSV file will map the PST files to mailboxes and destination folder.

Step 4: Import PST

Finally, you need to import the PST mapping file. Click on the Finish button, your PST file will be imported to Online Archive in Office 365.

Get-MailboxImportRequest | ForEach-Object -Process { Get-MailboxImportRequestStatistics -Identity $_.RequestGuid } | Select-Object -Property BatchName, TargetAlias, StatusDetail, StartTimestamp, OverallDuration, TotalInProgressDuration, EstimatedTransferSize, PercentComplete, @{Label=’File’;Expression={$_.AzureBlobStorageAccountUri | Split-Path -Leaf}} | Out-GridView -Title “PST Import Progress

Sometimes, it becomes difficult for the user to understand and implement the steps correctly. Additionally, if the user tries to perform the steps without any technical knowledge then it can also lead to data loss issues. Thus, it is recommended to opt for an automated and reliable solution to import PST to Online Archive in Office 365 account.

Alternative Method – To Import PST to Online Archive Office 365 PowerShell

The user can easily import PST to Office 365 account with the help of a third-party application to migrate Outlook to Office 365. With this utility, one can easily import PST files including emails, contacts, calendars, tasks to Office 365 in a hassle-free way. Moreover, the software also provides the option to include specific folders during the PST migration process. One can also import the PST files to Office 365 account selectively with the help of Date Filter option offered by the tool. Additionally, all the attributes associated with the emails such as attachments, metadata are maintained even after the migration process. The software is compatible with all the version of Microsoft Outlook.

5 Quick Steps to Import PST to Office 365 Online Archive Mailboxes

Step 1 : Download and Install Office 365 Import tool

Step 2 : Enter Credentials of Office 365 Account

enter credentials

Step 3 : Click on Add File(s)/ Folder Option to Import PST file

add files

Step 4 : Apply Filter option to import selective PST file data

apply filter

Step 5 : Click on Import button to begin the process.

Import PST to Online Archive Office 365


Final Words

Many users import PST to Online Archive folder in Office 365 for numerous purposes. However, they are not able to find a reliable and instant way to implement this task. Thus, in this blog, we have introduced both manual and automated solution to import PST to Online Archive folder in Office 365. The user can opt any method as per his/her choice. However, to avoid data loss issues it is recommended to opt Office 365 Import software.


Frequently Asked Question And Answers

Q: How do I import a PST file into Office 365?

A: There are two ways to import PST file to Office 365 archive. First is by using Powershell command and another is by using Office 365 Import tool

Q: Is it possible to import PST to Office 365 mailbox in bulk?

A: Yes, using PST to Office 365 Import tool, you can migrate multiple Outlook PST file data to O365 Online mailboxes in a few steps.

Q: Can I Import Outlook PST file data to Office 365 Online without Admin Credentials?

A: Yes, you can easily import Outlook file data to your O365 OWA without Admin credentials.

Q: Is it possible to Import Orphan PST files to my Office 365 Account?

A: Yes, you can use Powershell method as well as autoamted approach to migrate Orphan Outlook PST to O365 account