To stop Outlook from repeatedly asking to repair a PST file, you must use the Inbox Repair Tool (scanpst.exe) to fix structural errors in the data file or create a new Outlook profile if the file is beyond repair. This happens when the Outlook Data File (.pst) becomes corrupted due to improper shutdowns, network interruptions, or disk errors, preventing the application from reading the database correctly.

What You'll Need

  • Administrative access to the computer to access system folders.
  • A backup of your current PST file (highly recommended before attempting repairs).
  • The exact version of Outlook installed on your machine to locate the correct tool path.
  • Sufficient disk space to create a temporary backup during the repair process.

Step-by-Step

Because the Inbox Repair Tool is a standalone utility, you do not run it from within Outlook. In fact, Outlook must be completely closed for the tool to access the file. Note that menu labels and file paths may differ slightly depending on your version of Office or your operating system region.

  1. Close Outlook Completely: Ensure Outlook is not running in the background. Check the System Tray (bottom right of your taskbar) and right-click the Outlook icon to Exit if it is still active. If the program is frozen, use Task Manager (Ctrl + Shift + Esc) to end the Outlook process.
  2. Locate the scanpst.exe Tool: The repair tool is hidden in the Microsoft Office installation folder. Depending on your version, you will typically find it in one of these locations:
    • C:\Program Files\Microsoft Office\root\Office16 (for Office 365 or 2016/2019)
    • C:\Program Files (x86)\Microsoft Office\root\Office16
    • C:\Program Files\Microsoft Office\Office15 (for Office 2013)
    If you cannot find it, use the Windows Search bar to search for "scanpst.exe".
  3. Run the Inbox Repair Tool: Double-click the scanpst.exe file. This will launch the Inbox Repair Tool window.
  4. Select Your PST File: Click Browse to locate the corrupted PST file. By default, Outlook stores these files in Documents\Outlook Files or C:\Users\<username>\AppData\Local\Microsoft\Outlook. Select the file that Outlook has been flagging for repair and click Open.
  5. Start the Scan: Click the Start button. The tool will scan the file for errors. Depending on the size of your mailbox (some can be several gigabytes), this process can take anywhere from a few minutes to over an hour.
  6. Repair the Errors: Once the scan is complete, the tool will notify you if errors were found. Check the box that says Make a backup of scanned file before repairing. This is a critical safety step. Then, click Repair.
  7. Verify the Fix: After the repair process finishes, click OK and close the tool. Launch Outlook to see if the prompt to repair the file has disappeared.

Common Mistakes

One of the most frequent errors is attempting to run the Inbox Repair Tool while Outlook is still open. The tool requires exclusive access to the PST file; if Outlook is holding the file open, scanpst.exe will return an error stating that the file is in use. Always verify that the process is killed in Task Manager before starting.

Another common mistake is failing to create a backup before clicking "Repair". While the tool is generally reliable, the repair process involves rewriting parts of the database. If the computer crashes or loses power during this specific operation, the PST file can become permanently unrecoverable. Always ensure the "Make a backup" checkbox is ticked.

Users also often try to repair a file that is actually a .ost file (an offline cache for Exchange or IMAP accounts). The scanpst.exe tool is designed specifically for .pst files. If you are using an IMAP or Exchange account and seeing errors, you do not repair the file; instead, you delete the .ost file and let Outlook recreate it from the server.

Tips

To prevent future corruption, avoid storing your PST files on a network drive or a cloud-synced folder (like Dropbox or OneDrive) while Outlook is active. These services often try to sync the file while Outlook is writing to it, which can lead to file locking conflicts and structural corruption.

Regularly archive your old emails into a separate archive PST file. Large PST files (approaching 50GB) are significantly more prone to corruption and take much longer to repair. Keeping your primary active mailbox small improves performance and reduces the risk of the "repair file" prompt appearing.

If you frequently experience crashes, check your hard drive for bad sectors. Since a PST file is a database, a single physical bad sector on your disk where a critical index is stored can trigger the repair prompt every time Outlook starts.

Troubleshooting

If the Inbox Repair Tool reports that the file is repaired, but Outlook still asks you to repair it upon launch, the corruption may be too severe for the utility to handle. In this case, try the following steps in order:

1. Run the Repair Tool Again: It is not uncommon for scanpst.exe to fix one set of errors, which then reveals a second set of errors that were previously hidden. Run the tool 2-3 times in a row until it reports "No errors found".

2. Create a New Outlook Profile: Sometimes the issue isn't the PST file itself, but the profile configuration that points to it. Go to Control Panel > Mail > Show Profiles. Click Add to create a new profile, configure your email accounts, and set the new profile as the default. If Outlook opens without the error, the old profile was corrupted.

3. Import to a New PST: Create a brand new, empty PST file (via New Items > More Items > Outlook Data File). Then, use the Import/Export wizard to import the contents of the corrupted file into the new one. This often leaves the corrupted structural fragments behind while saving the actual emails.

4. Check for Third-Party Add-ins: Some antivirus software or backup tools integrate with Outlook and can lock the PST file in a way that mimics corruption. Try starting Outlook in Safe Mode (hold the Ctrl key while clicking the Outlook icon) to see if the prompt persists.

Frequently Asked Questions

Will repairing the PST file delete my emails?

The Inbox Repair Tool is designed to fix the structure of the file without deleting data. However, if a specific piece of data is physically corrupted beyond recovery, that individual email or folder may be lost. This is why the tool creates a backup before proceeding.

How often should I run scanpst.exe?

You should only run this tool when Outlook specifically prompts you to do so or if you notice missing emails and crashing. It is not a maintenance tool and should not be run on a schedule.

Can I repair a PST file from a different computer?

Yes. You can copy the PST file to another computer, run the scanpst.exe tool located on that machine, and then move the repaired file back to the original computer.

What is the difference between a PST and an OST file?

A PST (Personal Storage Table) is a local data file used for POP3 accounts or for archiving. An OST (Offline Storage Table) is a synchronized copy of a mailbox stored on a server (Exchange, Outlook.com, IMAP). Only PST files are repaired with scanpst.exe.

Why does the repair tool take so long to run?

The tool must read every single entry in the database to verify its integrity. If you have a file with tens of thousands of emails and large attachments, the tool must scan gigabytes of data, which is limited by your hard drive's read speed.