To repair Outlook data files, use the built-in Inbox Repair Tool (Scanpst.exe) for PST/OST files, or the newer scanost.exe for Outlook 2016 and later. This article explains how to locate and run these tools, what they can and cannot fix, and how to prevent data file corruption in the first place.
What Are Outlook Data Files?
Outlook stores your emails, contacts, calendar items, tasks, and notes in a data file. There are two main types:
- PST (Personal Storage Table): Used for POP3, IMAP, and Exchange accounts when you choose to keep data locally. Also used for archiving and exporting.
- OST (Offline Storage Table): Used for Exchange, Microsoft 365, and Outlook.com accounts. It’s a cached copy of your mailbox that syncs with the server.
When these files get corrupted, Outlook may crash, show error messages, or refuse to open. The repair tools are designed to fix logical corruption—not physical damage to the disk.
Why Do Outlook Data Files Get Corrupted?
Corruption can happen for several reasons:
- Unexpected shutdowns or power outages while Outlook is writing to the file.
- Disk full or disk errors.
- File size limits (older PST format had a 2 GB limit; newer Unicode PST supports up to 20 GB but can still have issues).
- Antivirus software scanning the file while Outlook is using it.
- Network issues when the file is on a network drive (not recommended).
Often, the first sign is an error like “Outlook cannot open the set of folders” or “The file .pst is not an Outlook data file.”
How to Run the Inbox Repair Tool (Scanpst.exe)
The Inbox Repair Tool is the built-in repair utility for PST and OST files. Here’s how to use it:
- Close Outlook completely (check Task Manager for any Outlook processes).
- Locate Scanpst.exe. It’s usually in one of these folders (depending on your Outlook version and Windows architecture):
- For 64-bit Outlook:
C:\Program Files\Microsoft Office\root\Office16(orOffice15for 2013,Office14for 2010) - For 32-bit Outlook on 64-bit Windows:
C:\Program Files (x86)\Microsoft Office\root\Office16 - If you installed from Microsoft Store, it may be in
C:\Program Files\WindowsApps(you may need to enable “Show hidden files”).
- For 64-bit Outlook:
- Run Scanpst.exe as administrator (right-click, “Run as administrator”).
- Browse to your PST/OST file. You can find the location by going to Outlook: File > Account Settings > Account Settings > Data Files tab. Select the file and click “Open File Location”.
- Click Start. The tool will scan for errors. If it finds any, it will ask you to make a backup before repairing. It’s a good idea to click “Backup” and save a copy.
- Click Repair and wait for the process to finish.
After repair, open Outlook and check if the problem is resolved. If not, you may need to run the tool multiple times—sometimes errors are found in subsequent passes.
Using scanost.exe for Outlook 2016 and Later
Starting with Outlook 2016, Microsoft introduced a newer repair tool specifically for OST files: scanost.exe. It’s located in the same Office folder as Scanpst.exe. This tool can rebuild the OST file from the server data. Here’s how:
- Close Outlook.
- Run scanost.exe as administrator.
- In the dialog, select the profile and mailboxes you want to repair.
- Click “Repair” to rebuild the OST. This will delete the local cache and re-download from the server.
Note: scanost.exe only works for OST files that are associated with an Exchange or Microsoft 365 account. For IMAP or POP3 accounts, use Scanpst.exe.
What the Repair Tool Can and Cannot Fix
The Inbox Repair Tool is good at fixing:
- Folder structure issues
- Item header corruption
- Unexpected file size changes
- Errors like “Outlook cannot open the set of folders”
It cannot fix:
- Physical disk damage (bad sectors)
- Missing items that were never saved
- Corruption caused by third-party add-ins (though disabling them can help)
If the tool fails, you might need to use a third-party PST repair tool, but those are not free and can be risky. Always back up your file before trying any repair.
Preventing Future Corruption
To reduce the risk of data file corruption:
- Always shut down Outlook properly.
- Keep your disk healthy—run chkdsk if you suspect disk errors.
- Don’t store PST files on network drives or USB flash drives.
- Exclude PST/OST files from real-time antivirus scanning (if your IT policy allows).
- Regularly back up your PST files (or rely on server-side retention for Exchange accounts).
- Keep Outlook and Windows updated.
Frequently Asked Questions
Where is Scanpst.exe located?
It’s in the Office installation folder. For Office 2016 and later, look in C:\Program Files\Microsoft Office\root\Office16 (or Program Files (x86) for 32-bit). For older versions, it’s in C:\Program Files\Microsoft Office\Office15 (2013) or Office14 (2010). If you can’t find it, use the search in File Explorer.
Can I repair an OST file without a server?
No. OST files are cached copies of server data. If you have no server connection, the repair tool cannot rebuild the OST. You can still use Scanpst.exe to fix minor corruption, but the best fix is to delete the OST and let Outlook re-download from the server.
Will repairing my PST file delete my emails?
Usually no. The repair tool attempts to recover items and place them in the “Recovered Items” folder. However, it’s not guaranteed. Always back up the file before running repair.
How long does the repair take?
It depends on the file size and the number of errors. A small PST (1 GB) might take a few minutes; a 20 GB file could take 30 minutes or more. The tool shows progress, and you can safely cancel and restart later.
What if the repair tool can’t find my PST file?
If Outlook can’t open the file, you can still browse for it manually. The default location is C:\Users\YourName\AppData\Local\Microsoft\Outlook. If the file is hidden, enable “Show hidden files” in File Explorer.
Is there a free alternative to Scanpst.exe?
Microsoft’s tool is free and built-in. Third-party tools like Stellar Repair for Outlook or Kernel for Outlook are paid and not officially endorsed. Try Scanpst.exe first—it’s the safest option.
When to Recreate Instead of Repair
If the repair tool fails, or if you have a Microsoft 365/Exchange account, sometimes it’s easier to remove the corrupted OST and let Outlook create a new one from the server. This is often faster and more reliable than repairing a badly corrupted file. For POP3 accounts, you can recreate the PST by creating a new data file and importing from a backup or from the server (if you have messages stored online).
In severe cases, you may need to use a third-party tool or contact Microsoft Support. But for most users, the built-in repair tool is the first step and often the only one needed.