How to Import PST Files into Office ‍365 with PowerShell?

Summary: In this guide, you will learn how to use the PowerShell cmdlets to upload and import PST files into Microsoft 365. To quickly export single or multiple PST files from your local storage to Microsoft 365 directly, you can use Stellar Migrator for Outlook mentioned in this guide.

Microsoft 365 (formerly Office 365) is a popular choice for organizations that want to move their emails and other mailbox data from Outlook to the cloud, as it offers benefits, including improved redundancy, reliability, security, and scalability at a reasonable cost. Microsoft 365 supports PST format. You can move or import PST files into Microsoft 365 using various methods. However, the preferred method, when it comes to migrating PST files to Microsoft 365, is by using the PowerShell commands.

Why use PowerShell for PST to Microsoft 365 Migration?

PowerShell is a powerful tool to perform various administrative tasks, including PST to Microsoft 365 migration. Here are some benefits of using PowerShell for PST to Microsoft 365 migration:

Steps to Migrate PST to Microsoft 365 using PowerShell

Before you begin migrating or importing your PST files to Microsoft 365 with PowerShell, you need to prepare your system.

Step 1: Prepare Your System Microsoft 365 Tenant

Follow the below instructions to prepare your system for PST import:

Step 2: Prepare PowerShell for PST Migration

To use PowerShell for PST migration, you need to,

We will use the AzCopy tool via PowerShell to upload and import PST files from your local system into Microsoft 365.

Step 3: Create Mailbox Mapping File for PST Migration

Before you start migrating your PST files to Microsoft 365, you need to create a CSV mapping file to map the PST files to the user accounts in Microsoft 365. To create a mapping file, follow these steps:

Tip – Avoid using spaces, uppercase letters, or special characters while preparing the PST files for the import job.

Once you have populated the details, save the CSV file and follow the next step to create a PST import job.

Step 4: Create a PST Import Job and Import PST Files into Microsoft 365

To create a PST import job in Microsoft 365, follow these steps:

azcopy.exe copy “PSTFolder or Location of pst files” “sas url=”>”

Once you’re done, you can start the PST import wizard to successfully import the PST file into Microsoft 365. After the import, users can log in to Microsoft 365 (Outlook 365) to access all their emails, contacts, attachments, and other mail items.

Things to Consider for PST to Office 365 Migration with PowerShell

During the upload or import process, you may experience issues that may prevent you from importing the PST files. To avoid issues, ensure the following:

Alternative Method – Use Stellar Migrator for Outlook

Stellar Migrator for Outlook is an advanced Outlook PST to Microsoft 365 migrator tool that aims to help individuals, IT admins, and businesses easily migrate users’ mailboxes stored in PST format to Microsoft 365.

By using Stellar Migrator for Outlook, you can automate the PST to Microsoft 365 migration and significantly save time, effort, and cost required for the mailbox migration.

The software offers an intuitive user interface, making it perfect for users with little to no expertise who want to import single or multiple PST files into Microsoft 365 (Office 365).

It also offers some advanced features, such as:

Stellar Migrator for Outlook is also quite easy-to-use. All you need to do is follow these simple steps:

Step 1: Select the PST file you want to import into Microsoft 365 and start the scan.

Step 2: After the scan, preview and select the mail items and folders you want to import into Microsoft 365.

Step 3: Log in to the software using your Stellar® cloud credentials.

Step 4: Select the Microsoft 365 profile configured in your Outlook to start the import process.

Step 5: The migration from PST to Office 365 process is completed.

As soon as you enter the Microsoft 365 details, the software starts importing the selected PST items into the user account directly.

Conclusion

This guide discusses how to use the PowerShell commands to import PST files into Microsoft 365. However, migrating the mailboxes from PST files to Microsoft 365 is a complex and time-consuming task. If you need to import several PST files without the risk of data loss, corruption, etc., it is recommended to download and install the Stellar Migrator for Outlook software. The software is not susceptible to errors and imports all mail items from PST to your Microsoft 365 mailbox with complete integrity while maintaining the original folder structure.  

Related Post

Exit mobile version