SUBMIT A FILE TYPE CONTACT US SUPPORT ABOUT US
Repair tutorial

How to Repair an Outlook PST File Using scanpst.exe

scanpst.exe is the Inbox Repair Tool that comes with Outlook. Close Outlook, open the tool, select your PST file, scan it and select Repair. The steps below take about five minutes for a small file.

By Neeraj Singh 5 min Published April 2017 Updated November 2026
On this page
  1. What Is scanpst.exe?
  2. Where to Find scanpst.exe
  3. How to Find Your PST File Location
  4. How to Repair a PST File Using scanpst.exe
  5. What to Do After the Repair
  6. When scanpst.exe Cannot Fix Your PST File
  7. Frequently Asked Questions
Quick Summary
  • 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 version64 bit Outlook32 bit Outlook
Microsoft 365, 2021 and 2019C:\Program Files\Microsoft Office\root\Office16C:\Program Files (x86)\Microsoft Office\root\Office16
2016, install with a root folderC:\Program Files\Microsoft Office\root\Office16C:\Program Files (x86)\Microsoft Office\root\Office16
2016, MSI installC:\Program Files\Microsoft Office\Office16C:\Program Files (x86)\Microsoft Office\Office16
2013C:\Program Files\Microsoft Office\Office15C:\Program Files (x86)\Microsoft Office\Office15
2010C:\Program Files\Microsoft Office\Office14C:\Program Files (x86)\Microsoft Office\Office14
2007C:\Program Files\Microsoft Office\Office12C:\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.

  1. Open Account Settings

    Open Outlook, select File, then Info, then Account Settings. Select Account Settings again in the menu.

    Outlook File Info screen with the Account Settings menu open
    File, Info, Account Settings in Outlook.
  2. 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.

    Outlook Account Settings Data Files tab listing PST file locations
    The Data Files tab shows where every file lives.
  3. 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.

  1. 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.

  2. Open SCANPST.EXE

    Go to the folder from the table above and open SCANPST.EXE. The Microsoft Outlook Inbox Repair Tool window appears.

    Microsoft Outlook Inbox Repair Tool window asking for the file to scan
    The Inbox Repair Tool asks for the file you want to scan.
  3. 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.

  4. 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.

    Inbox Repair Tool scan result with the Repair button highlighted
    Select Repair after the scan lists errors.
  5. Wait for the Repair Complete Message

    The tool shows a Repair complete message when it finishes. Select OK.

    Repair complete message from the Inbox Repair Tool
    The tool confirms the repair.
  6. 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.

Neeraj Singh

Neeraj Singh
Manager, Tech Support & Operations, with 19+ years of experience fixing Windows and system errors.

More Tech Tutorials

Still Stuck on This Problem?

Share your error with our team. We research the problem, test the steps and add a guide.