Converting OST to PST for all users at once using Powershell script?

Occasional Contributor



is it possible to convert OST to PST for all users at once using Powershell script?


and upload to o365?



6 Replies
Hi there,
As far as I know, there are no PowerShell commands that can read OST files or convert OST to PST. But you can use a free manual method to convert OST to PST.

If you want to upload OST into PST or Office 365, you can use a professional Solution.

Visit provided blog post below to know 4 methods to convert OST files.

The most reliable solution is to opt for a professional software solution. I have gone through such a utility called MCT OST Converter. This software is capable to convert OST files directly into Office 365. You can also convert the OST files into PST and other file formats. You should try its free version to analyze its performance.

You can simply use manual method to export OST file to Outlook PST. But if it fails, then you can try OST Converter Software. The application is capable to extract emails from Offline OST file to Outlook PST file format along with all the attached data. It supports all the version of MS Outlook including 2019 and 2016. If you have large amount of OST files, then don't need to worry, this software easily converts large-size OST files without any limit. It will recover emails, contacts, calendars, events, tasks, notes, journal items, etc., and convert them into PST file format. This software support all Windows OS version. Download the free demo version of the software.

Visit here for more info:-

@Linkang You need not run tricky PowerShell commands, simply launch Outlook and follow steps:


  1. Click on File from the Menu bar >> Open & Export >> Import/Export
  2. From Pop Up Window Select Export to a File Option and Click Next Button
  3. Select Outlook Data File (.pst) Option and Hit Next Button
  4. Select the Folder Which You Want to Export and Click the Next button. (Note: you can select only one folder at a time)
  5. Browse Location to Save Exported PST File on Your System Locally and Press Next Button.

All Done, It is a free and secure solution. But it has certain limitations as well, some of them are listed below:

  1. Cannot Convert Without Exchange Profile 
  2. Unable to Export Without Server Connectivity 
  3. Only One Folder can Be Exported in Single Go
  4. Unable to Convert Other Users Profile Created OST File 
  5. Exchange and Outlook Connectivity Required, etc. 

In all these situations, you need verified third-party software. For the same SysTools has designed an all-in OST to PST Converter Software for IMAP Outlook OST File. It overcomes all the limitations of Outlook Import/Export options. The software is capable to export inaccessible, orphaned, corrupted OST files into 15 different file formats and many more. Visit the official site for more details.

@Linkang You need to simply launch MS Outlook to run PowerShell commands by following simple steps:

  1. Click on File >> Open & Export >> Import/Export
  2. In the next Window Select Export to a File Option and Click Next.
  3. Select Outlook Data File (.pst) and press Next Button
  4. Select the Folder Which You Want to Export and Click the Next button.
  5. Browse Location to Save Exported PST File on Your System & Press Next Button.

That's it. Before performing these steps, let me clear you that there are certain limits while performing these steps. So, it is recommended to choose any third party software. In that case, I will suggest you to choose ZOOK OST to PST Converter for error-free solution. It is so amazing solution which directly export OST files into PST format. Just couple of simple steps and all your OST files will be saved into PST format.

Hi dear user,
You asked good question, if I give suggestion on my personal technical experience, PowerShell script is convenient only for technical user. It requires more technical expertise to convert and migrate OST to Office 365. But your question is for all user then you should probably use MailsDaddy OST to PST converter. This OST converter tool is specially designed to meet the OST to PST conversion requirement. Here you can export not only in PST but also in other file formats like HTML, MHTML, EML, RTF etc. Migrating OST file to Live Exchange Server can also be done using it. So use this application to instead using PowerShell script.