On this page
- scanpst.exe lives in your Microsoft Office folder, and the path depends on your Outlook version.
- Close Outlook and copy the PST file before you start the repair.
- Recovered items can appear in a Recovered Personal Folders file after you restart Outlook.
- The tool cannot bring back items that were permanently deleted or damaged beyond repair.
What Is scanpst.exe?
scanpst.exe is Microsoft's Inbox Repair Tool for Outlook data files. It scans a PST file for errors in the file structure and fixes the errors it finds.
The tool checks the file only. It does not connect to your Exchange mailbox, so it cannot fix problems on the server.
Use it when you think a PST file is corrupt. If you want to know more about the file first, see our guide on what a PST file is and how it works.
Where to Find scanpst.exe
Close Outlook first. Then open the folder that matches your Outlook version and your Office install type.
| Outlook version | 64 bit Outlook | 32 bit Outlook |
|---|---|---|
| Microsoft 365, 2021 and 2019 | C:\Program Files\Microsoft Office\root\Office16 | C:\Program Files (x86)\Microsoft Office\root\Office16 |
| 2016, install with a root folder | C:\Program Files\Microsoft Office\root\Office16 | C:\Program Files (x86)\Microsoft Office\root\Office16 |
| 2016, MSI install | C:\Program Files\Microsoft Office\Office16 | C:\Program Files (x86)\Microsoft Office\Office16 |
| 2013 | C:\Program Files\Microsoft Office\Office15 | C:\Program Files (x86)\Microsoft Office\Office15 |
| 2010 | C:\Program Files\Microsoft Office\Office14 | C:\Program Files (x86)\Microsoft Office\Office14 |
| 2007 | C:\Program Files\Microsoft Office\Office12 | C:\Program Files (x86)\Microsoft Office\Office12 |
The file name in every folder is SCANPST.EXE. Microsoft lists the Office16 path for Outlook 2019 and 2016 on its repair Outlook data files page.
What If You Cannot Find scanpst.exe?
Search the Office folder in File Explorer for SCANPST.EXE. The tool installs with Outlook, so it exists on every PC that has Outlook.
If the tool will not start, repair Office from Windows Settings. Open Apps, select Microsoft Office or Microsoft 365, choose Modify and start a Quick Repair.
How to Find Your PST File Location
You need the path of your PST file before you scan it. Outlook shows the path in Account Settings.
Open Account Settings
Open Outlook, select File, then Info, then Account Settings. Select Account Settings again in the menu.

File, Info, Account Settings in Outlook. Open the Data Files Tab
The Location column lists the path of every data file. Your PST file is the one with the .pst extension.

The Data Files tab shows where every file lives. Copy the Path and Close Outlook
Select your file and choose Open File Location, or write down the path. Then close Outlook and every other mail enabled app.
How to Repair a PST File Using scanpst.exe
Follow these six steps in order. Do not skip the backup.
Back Up the PST File
Copy the PST file to another folder or drive. The repair changes the original file, so the copy is your safety net.
Open SCANPST.EXE
Go to the folder from the table above and open SCANPST.EXE. The Microsoft Outlook Inbox Repair Tool window appears.

The Inbox Repair Tool asks for the file you want to scan. Browse to Your PST File and Start the Scan
Select Browse, choose your PST file and then select Start. Select Options if you want to skip the log file or add the results to an existing log.
Select Repair
When the scan finds errors, the tool shows the number of folders and items in the file. Keep the box for a backup of the scanned file checked, then select Repair. You can change the name or location of the backup file here.

Select Repair after the scan lists errors. Wait for the Repair Complete Message
The tool shows a Repair complete message when it finishes. Select OK.

The tool confirms the repair. Start Outlook With the Repaired File
Open Outlook with the profile that uses this data file. Check your folders and your most recent emails.
What to Do After the Repair
The repair can change how your folders look. Check these four things.
- Recovered Personal Folders. Recovered items can appear in a Recovered Personal Folders file, with a Lost and Found folder. Some folders can be empty.
- Move your items. Create a new data file, drag the recovered items into it and then remove the recovered file from Outlook.
- Scan again. Microsoft notes that some files need more than one scan. Scan until the tool reports no errors.
- Use the backup file. The tool saves a file with the .bak extension next to the original. Copy it, rename the copy with the .bak.pst ending and import it into Outlook.
If you use an Exchange account, you can delete the OST file. Outlook creates a new one the next time it starts. Our guide to converting an OST file to PST covers the case where you need the data from an old OST file.
When scanpst.exe Cannot Fix Your PST File
scanpst.exe repairs the file structure. It cannot recreate items that were permanently deleted or damaged beyond repair.
The Microsoft page does not list a size limit for the tool. It also warns that the tool does not analyze Exchange mailbox data.
If errors stay after several scans, keep your backup copy untouched and try a dedicated repair tool.
Repair a Severely Damaged PST File
The SysTools PST Repair tool scans damaged ANSI and Unicode PST files with a Quick or Advanced scan. It previews the recovered items before you save them, and the free demo exports 25 items per folder.
Frequently Asked Questions
Where is scanpst.exe located?
Open the Office16 folder inside Program Files, under Microsoft Office and root for Microsoft 365, 2021 and 2019. Outlook 2013 uses Office15, Outlook 2010 uses Office14 and Outlook 2007 uses Office12.
Is scanpst.exe safe to use?
Yes. It is Microsoft's own Inbox Repair Tool. It changes the PST file during the repair, so copy the file before you start.
Can scanpst.exe recover deleted emails?
No. Microsoft says the tool cannot recover items that were permanently deleted or damaged beyond repair.
Does scanpst.exe work on OST files?
Microsoft covers both PST and OST files in its repair guide. For an Exchange account, you can delete the OST file and Outlook creates a new one on the next start.
Why will scanpst.exe not open?
The Office install can be damaged. Microsoft advises you to repair the Outlook program when the tool will not start.
How many times should I scan a PST file?
Scan until the tool reports no errors. Microsoft notes that some files need several passes.
