Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Use Scanpst.exe to Repair Outlook PST/OST Files

· 5 min read · Home Tech

In this article
  1. What Is Scanpst.exe?
  2. Where to Find Scanpst.exe
  3. How to Run Scanpst.exe
  4. What Scanpst.exe Can and Cannot Fix
  5. Common Problems and Solutions
  6. Comparison with Other Repair Methods
  7. Safety and Best Practices
  8. Frequently Asked Questions

Yes, you can use Scanpst.exe (the Inbox Repair Tool) to repair corrupted Outlook PST and OST data files, and it is often the first step Microsoft recommends before considering third-party recovery software. This article explains what Scanpst.exe is, where to find it, how to run it, its limitations, and when you should look for alternatives.

What Is Scanpst.exe?

Scanpst.exe is a free, built-in Microsoft Outlook diagnostic utility that scans and attempts to repair errors in Personal Folders (.pst) and Offline Outlook Data (.ost) files. It is commonly called the Inbox Repair Tool. The tool checks the file's internal structure, finds inconsistencies, and repairs them when possible. It does not recover deleted emails or restore files that are severely damaged beyond repair.

Where to Find Scanpst.exe

The location of Scanpst.exe depends on your Outlook version and whether you have a 32-bit or 64-bit installation. Common paths include:

  • Outlook 2019, 2016, 2013, or 2010 (32-bit): C:\Program Files (x86)\Microsoft Office\root\Office16\Scanpst.exe (the folder may be Office15, Office14, etc.)
  • Outlook 2019, 2016, 2013, or 2010 (64-bit): C:\Program Files\Microsoft Office\root\Office16\Scanpst.exe
  • Outlook for Microsoft 365: Same as Office 2016/2019 paths, often under Office16.
  • Older versions (Outlook 2007): C:\Program Files\Microsoft Office\Office12\Scanpst.exe

If you cannot find the file, use Windows Search or File Explorer to search for “Scanpst.exe” on your C: drive. The version of Scanpst.exe must match the bitness (32-bit or 64-bit) of your Outlook installation.

How to Run Scanpst.exe

Before you start, close Outlook completely. If the file is in use, the tool may fail to open it. Then follow these steps:

  1. Locate Scanpst.exe using the paths above.
  2. Double-click the file to launch the Inbox Repair Tool.
  3. Click Browse to select your .pst or .ost file. If you don't know its location, open Outlook, go to File > Account Settings > Account Settings, select the Data Files tab, and note the path of the file.
  4. Click Start to begin the scan. The tool will show progress and list any errors found.
  5. If errors are found, click Repair to attempt fixes. The tool creates a backup of the original file in the same folder with a .bak extension before making changes.
  6. After repair, restart Outlook and check if your data is accessible.

What Scanpst.exe Can and Cannot Fix

Scanpst.exe is designed to fix structural corruption in the data file—for example, errors in the file header, indexes, or item properties. It can often resolve issues like:

  • Outlook crashes when opening the data file.
  • Errors such as “Outlook cannot access the file” or “Errors have been detected in the file.”
  • Missing folders or items that are hidden due to index corruption.

However, it is not a data recovery tool. It will not restore items that were deleted, nor can it repair a file that is physically damaged (e.g., bad sectors on a hard drive). If the tool reports that it cannot repair the file, or if after repair Outlook still shows errors, your next step is usually to try a third-party recovery tool or restore from a backup.

Common Problems and Solutions

Users often encounter issues when running Scanpst.exe. Here are some common problems and what to do:

  • “The file is in use” error: Make sure Outlook and any other process that might lock the file (like a sync client) are closed. Check Task Manager for OUTLOOK.EXE and end it if necessary.
  • Scanpst.exe cannot find the file: Verify the path. The .ost file is often hidden; enable “Show hidden files and folders” in File Explorer options.
  • Repair takes a long time: Large PST/OST files can take a while. Be patient; do not interrupt the process.
  • Repair does not fix the problem: If the tool finds errors but Outlook still fails, the corruption may be too severe. Consider using the New Outlook (for Microsoft 365) or creating a new Outlook profile.

Comparison with Other Repair Methods

Scanpst.exe is not the only way to fix Outlook data files. Here’s how it compares to other common methods:

  • New Outlook (Microsoft 365): The newer Outlook app uses a different architecture and may not rely on classic PST/OST files. If you're using it, the Inbox Repair Tool may not apply.
  • Third-party recovery tools: These are paid software that can recover data from severely corrupted files, but they are not guaranteed to work and should only be used when Scanpst.exe fails.
  • Creating a new Outlook profile: This can fix issues caused by profile corruption, but it won't repair a damaged PST/OST file itself.
  • Import/Export from a backup: If you have a recent backup, restoring it is often faster and more reliable than repairing.

Safety and Best Practices

Scanpst.exe is generally safe, but it can sometimes make things worse if the file is severely corrupted. To minimize risk:

  • Always back up your PST/OST file before running the tool. The tool creates a .bak file, but that is not a substitute for a separate backup.
  • Close Outlook and any other programs that use the file.
  • Run the tool on a copy of the file if you are unsure. This way, you keep the original intact.
  • Do not run Scanpst.exe on a network drive; copy the file to a local drive first.

Frequently Asked Questions

Can Scanpst.exe repair OST files?
Yes, it can repair both PST and OST files. However, for OST files, it's often easier to simply delete the OST and let Outlook re-sync from the server, since OST files are just cached copies. If you have offline data that isn't on the server, Scanpst.exe is your only built-in option.

Will Scanpst.exe recover deleted emails?
No. The tool only fixes structural corruption; it does not recover items you deleted. If you deleted emails, check the Deleted Items folder or use the “Recover Deleted Items” feature in Outlook.

How long does Scanpst.exe take?
It depends on the file size and the degree of corruption. A small file (a few hundred MB) might take a few minutes, while a 50 GB file could take an hour or more. Do not cancel the process.

What does the .bak file do?
The .bak file is a backup of your original data file before any repairs are made. If the repair causes problems, you can rename the .bak to the original extension to restore your pre-repair state.

Is Scanpst.exe the same as Scanost.exe?
No. Scanost.exe is a different tool that specifically repairs offline address book files (.oab) and is not used for PST/OST repair. Use Scanpst.exe for both PST and OST files.

What if Scanpst.exe says “No errors were found” but Outlook still has problems?
If the tool finds no errors, the issue is likely not with the data file itself. Try repairing your Office installation, creating a new Outlook profile, or checking for add-ins that might be causing conflicts.