Smart Systems for Home

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

Scan Outlook PST File: What It Means & How to Do It

· 7 min read · Home Tech

In this article
  1. What a PST File Is and Why It Needs Scanning
  2. How Scanpst.exe Works
  3. Where to Find Scanpst.exe and How to Run It
  4. What Scanpst.exe Can and Cannot Fix
  5. Common Problems and Misconceptions
  6. Alternatives to Scanpst.exe
  7. Costs and Safety Considerations
  8. Frequently Asked Questions

Yes, you can scan an Outlook PST file, and the built-in tool for this is called Scanpst.exe (Inbox Repair Tool). This Microsoft utility checks the personal folder file for structural corruption and attempts to fix errors it finds, but it does not recover deleted items or repair logical issues like a damaged email body.

What a PST File Is and Why It Needs Scanning

A PST (Personal Storage Table) file is the data container Outlook uses for your emails, calendar entries, contacts, tasks, and notes when you use a POP or IMAP account. Every time Outlook writes to this file, it updates a complex index and data structure. If the program crashes, your computer loses power, or the file is copied to a drive with bad sectors, that structure can become inconsistent.

Common signs that a PST needs scanning include:

  • Outlook repeatedly asks for the location of your data file or says it is not a valid PST.
  • You see error messages like “Outlook cannot open the set of folders” or “Errors have been detected in the file.”
  • Folders appear empty, or emails are missing attachments.
  • Outlook freezes or crashes when you try to open a specific folder.

Scanpst.exe is not a maintenance tool; it is a repair tool. Running it on a healthy PST is unnecessary and can sometimes cause a full rebuild of the file, which is time-consuming.

How Scanpst.exe Works

Scanpst.exe reads the PST file’s binary structure and compares it against expected Microsoft-defined formats. It checks the file’s header, folder hierarchy, message tables, and individual item properties. When it finds a discrepancy, it logs the error and, if you choose to repair, attempts to rewrite the damaged part to a consistent state.

The tool works in two phases:

  1. Scan: It reads the file and produces a report of errors. Nothing is changed at this stage.
  2. Repair: After you click “Repair,” it creates a backup copy of the original file (with a .bak extension) and then writes corrected structures to the original location.

For large PST files (over 20 GB), the scan can take several hours. The tool is single-threaded and does not use a progress bar that shows percentage complete; it just shows a status line that updates slowly.

Where to Find Scanpst.exe and How to Run It

The location of Scanpst.exe depends on your Outlook version and whether you have 32-bit or 64-bit Office installed. Common paths are:

  • C:\Program Files\Microsoft Office\root\Office16\ (Outlook 2016, 2019, or Microsoft 365)
  • C:\Program Files (x86)\Microsoft Office\root\Office16\ (32-bit Office on 64-bit Windows)
  • C:\Program Files\Microsoft Office\Office15\ (Outlook 2013)
  • C:\Program Files\Microsoft Office\Office14\ (Outlook 2010)

To run it:

  1. Close Outlook completely.
  2. Navigate to the folder containing Scanpst.exe and double-click it.
  3. Click “Browse” to locate your PST file. The default path is usually %LocalAppData%\Microsoft\Outlook.
  4. Click “Start” to begin scanning.
  5. Review the error report. If errors are found, click “Repair.”

After repair, Outlook will open the file. You may need to re-enter your email password or re-add the account if the repair changed the file’s internal identifiers.

What Scanpst.exe Can and Cannot Fix

It is important to set realistic expectations. Scanpst.exe is designed to fix structural corruption, not data loss. It can:

  • Recover folders that have become inaccessible due to index errors.
  • Fix the file header so Outlook recognizes the PST.
  • Restore the folder hierarchy if the tree is damaged.
  • Repair individual items that have invalid property tags.

It cannot:

  • Recover emails that were permanently deleted (even if they are still in the “Recoverable Items” folder).
  • Repair a PST that was created with a different language or version (though newer versions can read older formats).
  • Fix password-protected PST files if you do not know the password.
  • Restore data from a physically damaged hard drive—the tool needs to read the file, so if the disk is failing, copy the PST to a healthy drive first.

Common Problems and Misconceptions

One widespread misconception is that Scanpst.exe will shrink a bloated PST file. It does not. It only repairs structural errors; it does not compact the file. To reduce file size, you need to use Outlook’s “Compact Now” feature (under Account Settings > Data Files) or create a new PST and move items into it.

Another issue is that Scanpst.exe may report “No errors were found” even when Outlook is still misbehaving. This usually means the problem is not structural but logical—for example, a corrupted add-in or a profile issue. In that case, you should create a new Outlook profile and test the PST with that profile.

Sometimes users run Scanpst.exe on a PST that is currently in use by Outlook. The tool will give a warning that the file is locked, but if you ignore it and force the scan, it can cause further damage. Always close Outlook and any process that might have the file open (like a backup program).

Alternatives to Scanpst.exe

If Scanpst.exe fails to fix the file, you have a few options:

  • Use the “New PST” approach: Create a new PST in Outlook, then drag and drop folders from the damaged PST (if it opens at all) to the new one. This can sometimes bypass the corrupted parts.
  • Recoverable Items: If you can open the PST but items are missing, check the “Recoverable Items” folder via the “Purge” feature. This is not a repair tool, but it can restore deleted items.
  • Third-party repair tools: Commercial tools like Stellar Repair for Outlook or Kernel for Outlook claim to handle more severe corruption and can often recover data that Scanpst.exe cannot. These are paid products, and you should use them with caution—always work on a copy of the file.
  • Previous versions: If you have File History or Windows Backup enabled, you might be able to restore an earlier version of the PST file. This is not a repair, but a rollback.

Costs and Safety Considerations

Scanpst.exe is free and included with Microsoft Office. Third-party tools range from $50 to $200 for a single license, and they often offer a free trial that lets you see what they can recover before you pay.

Safety is critical when dealing with PST files:

  • Always back up the original file before running any repair tool. Scanpst.exe creates a .bak file automatically, but that backup is only of the pre-repair state. If the repair makes things worse, you can restore the .bak.
  • Never run Scanpst.exe on a network drive or a USB flash drive. Copy the PST to a local hard drive first.
  • If the PST is very large (over 50 GB), consider splitting it into smaller files before scanning, because the tool may run out of memory.
  • Do not use Scanpst.exe to “prevent” corruption. It is not a preventive tool; it is a reactive one.

Frequently Asked Questions

Does Scanpst.exe recover deleted emails?

No. Scanpst.exe only repairs structural damage. If you deleted an email and emptied the Deleted Items folder, Scanpst.exe will not bring it back. You would need a third-party recovery tool that scans the PST for remnants of deleted items, and even then success is not guaranteed.

How long does it take to scan a PST file?

It depends on the file size and the extent of corruption. A healthy 2 GB PST might take 5–10 minutes. A 30 GB PST with many errors can take several hours. The tool does not show a percentage, so you just have to wait.

Can I run Scanpst.exe on a PST that is in use?

No. Outlook locks the file while it is running. You must close Outlook and any other program that might have the file open. If you try to scan a locked file, the tool will warn you and may produce an inaccurate result.

What happens if Scanpst.exe creates a .bak file?

The .bak file is a copy of the original PST before any repairs were applied. It is stored in the same folder as the original. You can use it to roll back if the repair causes problems. Do not delete it until you are sure Outlook works correctly.

Will scanning a PST fix a password prompt?

No. Scanpst.exe does not handle passwords. If Outlook is asking for a password for the PST, that is a security feature, not corruption. You need the correct password. If you forgot it, there is no official way to recover it.

Is there a difference between Scanpst.exe and OST repair?

Yes. OST (Offline Storage Table) files are for Exchange accounts. Scanpst.exe is for PST files. For OST, Outlook can automatically rebuild the file from the server. You do not normally need to repair an OST because it is a cache of server data.