Forum Discussion

Linkang's avatar
Linkang
Copper Contributor
Dec 01, 2021

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

Hi,

 

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

 

and upload to o365?

 

Thanks

  • Hii, You can convert your OST files to PST by using these simple steps:-
    1. Download Microsoft Outlook and go to the File menu.
    2. Choose the Import/Export option.
    3. Then, select the Export to a file option to export the desired file.
    4. Select Outlook Data File (.pst)
    5. Choose whether to export a specific folder or the whole account.
    6. Check the Include subfolders box and add the subfolder if you want to add it.
    7. Next, select a destination for the Export, and then click Finish
  • Hannahbaker's avatar
    Hannahbaker
    Copper Contributor

    Hi, Linkang If the need to convert Outlook OST file to PST format arises, There are no PowerShell commands that can read OST files or convert OST to PST, the problem is that Microsoft never really exposed OST file format in .NET classes, which means PowerShell's got nothing to build on but there are some manual methods and third-party tools you could potentially use. One such trustworthy tool is Shoviv OST to PST file Converter.

    So, as far as converting OST to PST using PowerShell is concerned, it isn’t feasible as of now.

     

    Convert OST to PST file Manually:-

     

    • Open MS Outlook.
    • Click the File menu.
    • Select the “Import and Export” wizard or press ‘t’.
    • From the list, click the “Export to a file” option and then click Next button
    • Select Personal File Folder (.pst) and then click Next button.
    • Select the items to be exported or Click on parent root and check the Include sub-folders option.
    • Browse and select the target folder for saving the email items.
    • Click the Finish button.
  • EricStarker's avatar
    EricStarker
    Icon for Community Manager rankCommunity Manager
    Hello all! We've turned off the ability to reply to this thread, as the author's question has had many answers, and this question is spawning a lot of advertisements for third-party products in response, which is prohibited by our guidelines. Thanks!
  • David_Gray's avatar
    David_Gray
    Copper Contributor

    OST is just a cache file that only helps you access your Outlook Profile Offline. Sometimes due to many reasons, if the OST file has corrupted, then you can delete the OST file from the local folder and can recreate the OST file from the network server. However, When the user profile has been deleted from the Network server and users don’t have the mailbox backup, they can use the local saved OST file to regain their mailbox data in the PST file format. That PST you can import to new Outlook profile without any hassle. Unfortunately, there are no free tools or PowerShell commands to convert the encrypted orphaned OST file. You have to go with 3rd party tools for this work. You can check the MVP discussion and take the idea about the some recommended OST converter tool available in the market,

  • akashsingh55's avatar
    akashsingh55
    Copper Contributor

    You can convert offline IMAP, Outlook, or Exchange OST files to PST format using this utility without any additional work. The software offers a user-friendly interface that allows even non-technical users to convert OST files to PST files. You can convert 50 items from an OST file to PST format during the free trial time.
    OST to PST Converter is a powerful OST to PST conversion tool that restores data from OST files. The software includes a slew of user-friendly features to enable a speedy and seamless conversion from OST to PST.

  • ahana_singh650's avatar
    ahana_singh650
    Copper Contributor
    Hii, You can convert your OST files to PST by using these simple steps:-
    1. Download Microsoft Outlook and go to the File menu.
    2. Choose the Import/Export option.
    3. Then, select the Export to a file option to export the desired file.
    4. Select Outlook Data File (.pst)
    5. Choose whether to export a specific folder or the whole account.
    6. Check the Include subfolders box and add the subfolder if you want to add it.
    7. Next, select a destination for the Export, and then click Finish
  • mvniit's avatar
    mvniit
    Copper Contributor

     

    In Outlook 2013, 2016, or 2019,

    • Navigate to File > Open & Export > Import/Export. This opens the Outlook Import Export Wizard.
    • Select Export to a file from the Import and Export Wizard window and click Next.
    • In Export to a file window, choose Outlook Data File (.pst) and click Next.
    • Choose the mail folders and items you want to convert to PST and check the 'Include subfolders' checkbox. Then click Next.
    • Click 'Browse' to select a save location to save the converted PST file and click 'Next.
    • Click 'Finish. Then enter a password or click 'OK' without entering the password.'

    Linkang 

  • RohanWiese's avatar
    RohanWiese
    Copper Contributor

    Linkang 

    We'll need to use Outlook self to manually convert an OST file to a PST. Ensure that you can access the original Outlook profile.

    • Click File in Outlook.
    • Choose Import/Export from the list of options under Open & Export.
    • Choose Save as a file from the drop-down menu.
    • Choose a data file from Outlook (.pst)
    • Choose whether to export a specific folder or the entire account. Ascertain that Include subfolders is checked.
    • Click Next, then Finish after selecting an export destination. When the export is complete, you'll be given a PST file that you may use to import your emails into another account.

     

     

     

  • EricStarker's avatar
    EricStarker
    Icon for Community Manager rankCommunity Manager

    Linkang As a reminder to all respondents, we do not allow external third-party links in Tech Community. We'll be removing posts that include these links, or will remove links within posts, depending on the content. The question was about using a PowerShell script - if you must suggest a third-party tool, please do not link to it as self-promotion/advertising is against our code of conduct. Thanks for understanding and contributing to Tech Community.

Resources