How to fix problems with Outlook .pst and .ost data files

On Windows 10, whether you're using Outlook 2019, 2016, or an older version, the app stores a copy of your emails, contacts, and calendars using two different data files depending on the account type for offline access.

If you're using an IMAP or POP account, such as those provided by your Internet Service Provider (ISP), then your account information is stored inside of an Outlook Data File (PST). On the other hand, if you're using an Office 365, Exchange, or Outlook.com account, the data is stored in the Offline Outlook Data File (OST).

Usually, these data files are very reliable, but they can eventually stop working or get damaged, and for this reason, all desktop versions of Outlook bundles a repair tool to troubleshoot and fix problems with .pst files, as well as the ability to regenerate the .ost file automatically.

In this Windows 10 guide, we'll walk you through the steps to repair corrupted data files, recover missing items from your inbox, problems opening Outlook 2019, Outlook 2016, and older versions using a .ost or .pst file.

How to repair Offline Outlook Data File (.ost)

Whether you're using an Exchange, Office 365, or Outlook.com account, to fix issues with a .ost file, close the email app, and then use these steps:

  1. Open Control Panel.Quick Tip: If you're using only the default profile named "Outlook," you can type this path: %LOCALAPPDATA%\Microsoft\Outlook to jump directly to the location of the .ost file, and skip to step No. 12. Otherwise, continue with the steps below.
  2. Click on User Accounts.
  3. Click the Mail option.

  1. In the "Mail Setup" experience, click the Show Profiles button.

  1. Select the profile with the account you want to fix. (The default profile is called "Outlook.")
  2. Click the Properties button.

  1. Click the Email Accounts button.

  1. Click the Data Files tab.
  2. Select the broken account.
  3. Click the Open File Location button.

  1. Click the close button for the "Accounts Settings," "Mail Setup," and "Mail" windows.
  2. Right-click the .ost file for the account having issues, and select the Delete option.

Once you complete these steps, open the desktop version of Outlook again to recreate the .ost file for the account you intend to repair.

How to repair Outlook Data File (.pst)

Alternatively, in the case that you're using an email account using IMAP or POP settings, to fix problems with a .pst file, close the Outlook application, and then use these steps:

  1. Use the Windows key + R to open the Run command.
  2. Type the following path and click the OK button:C:\Program Files (x86)\Microsoft Office\root\Office16Quick Note: The above path applies to Office 2016, Office 2019, and Office 365. If you're running Outlook 2013, use this path: C:\Program Files (x86)\Microsoft Office\Office15. In the case that you have an older version of the app, change "Office15" in the path to "Office14" for Outlook 2010, or to "Office13" for Outlook 2007 in the path.
  3. Double-click the SCANPST.EXE file to open the Microsoft Outlook Inbox Repair experience.

  1. Click the Browse button.
  2. Locate the .pst file you want to repair.
  3. Click the Open button.
  4. Click the Start button.

  1. Check the Make a backup of scanned file before repairing option (just in case).
  2. Click the Repair button.

After completing the steps, the Microsoft Outlook Inbox Repair Tool will scan and repair the .pst file for the email account with problems. Once the repair completes, you can launch Outlook, and the issues with the account should now be resolved.

Extended recovery steps

While the tool can detect and repair many issues with a .pst file, you may still need to use additional steps to recover all the items of an email account.

If this is the case, in the left pane, you'll notice a Recovered Personal Folders or Lost and Found folders, which include the repaired items that couldn't be restored.

Recovering missing items from folder

To recover items that couldn't be restored, use these steps:

  1. Open the Recovered Personal Folders or Lost and Found folder.
  2. Select the items you want to recover.
  3. Drag and drop those items into the correct folders.
  4. Right-click the now empty folder and select the Delete option.

Recovering missing items from backup

In the case that there are still items missing, you may be able to recover them from the original Outlook Data File using the backup file created by the repair tool.

  1. Open the location of the .bak file. (This file is located in the same folder as the .pst file.)
  2. Right-click the .bak file and select the Copy option.
  3. Right-click in the folder and select the Paste option to create a copy of the file.
  4. Select the .bak file.
  5. Press F2 the key and rename the file to .bak.pst and press Enter.

  1. Open Outlook.
  2. Click on File.
  3. Click on Open & Export.
  4. Click the Import/Export button.

  1. Select the Import from another program or file option.
  2. Click the Next button.

  1. Select the Outlook Data File (.pst) option.

  1. Click the Next button.
  2. Specify the location of the .pst file.
  3. Select the Import option that you want to use.
  4. Click the Next button.

  1. Select the items you want to import.
  2. Click the Finish button.

Once you've completed the steps, Outlook should now include all the account items.

We're focusing this guide on Windows 10 users, but if you're using an older version of Outlook (2016, 2013, 2010, and 2007), it's still possible to use these instructions on Windows 8.1 and Windows 7.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

Latest in Windows 10
Windows 10 Find My Device
How to enable Find My Device on Windows 10 to recover your PC if it's ever lost or stolen
Outlook Client Hero
Microsoft just made Windows 10 worse, and there's (almost) nothing you can do about it
Windows 10 Start menu on HP ZBook Studio G4
Microsoft will retroactively downgrade this part of Windows 10 next month
Former Microsoft Executive Vice President Terry Myerson stands in front of a presentation about Windows 10
Microsoft addresses the 'elephant in the room,' discusses upcoming end of Windows 10 support
Surface Hub 2S
Windows 10 for PCs is not the only version of Windows to reach end of support this year
Windows Insider program settings
Microsoft shuts down the Windows 10 Beta Channel just five months after reopening it
Latest in How-to
Atomfall
Can I play Atomfall on Steam Deck, ROG Ally, and other gaming handhelds?
Windows 11 answer file
How to easily create an unattended answer file for Windows 11
The First Berserker: Khazan
Is The First Berserker: Khazan on Xbox Game Pass?
Clair Obscur: Expedition 33
Is Clair Obscur: Expedition 33 on Xbox Game Pass?
A close-up of Hazel in South of Midnight
Is South of Midnight on Xbox Game Pass?
Atomfall screenshot
Atomfall: How to grab the best melee weapon and melee perk right away