When your Outlook PST file becomes corrupted, the Outlook Inbox Repair Tool is the built-in Microsoft utility that can often recover your data. This tool, officially called scanpst.exe, scans and repairs damaged Outlook data files so you can regain access to messages, contacts, and folders. The following guide shows the precise locations and commands needed for current Outlook versions.
When the Outlook Inbox Repair Tool Becomes Necessary
Outlook displays errors such as "Cannot open the Outlook window" or "The file is not a personal folders file" when the PST file structure is damaged. These issues commonly appear after sudden shutdowns, large imports, or storage drive errors. Before running any repair, create a full backup copy of the PST file on an external drive or separate folder. The repair process works on both .pst and .ost files but cannot recover permanently deleted items.
Identify your Outlook version first by opening Outlook, clicking File, then Office Account. This determines the exact folder path where scanpst.exe resides on your computer.
Step-by-Step Guide to Using the Outlook Inbox Repair Tool
-
Locate scanpst.exe on your system
Open File Explorer and navigate to the correct path based on your Outlook version. For Outlook 2016, 2019, or Microsoft 365, go to C:\Program Files\Microsoft Office\root\Office16. For Outlook 2013 the path is C:\Program Files\Microsoft Office\Office15. Double-click scanpst.exe to launch the Inbox Repair Tool window.
-
Select the corrupted PST file
In the Inbox Repair Tool dialog, click the Browse button. Navigate to the location of your PST file, typically C:\Users\YourUsername\Documents\Outlook Files. Select the file showing errors and click Open. The full file path now appears in the Enter the name of the file you want to scan field.
-
Start the scan and review results
Click Start. The tool examines the file structure and reports any errors found in a summary window. Note the number of errors listed before proceeding. If no errors appear, the file may not need repair or the corruption may be elsewhere.
-
Repair the file
Click Repair. The tool creates a new file named filename-repaired.pst in the same folder and logs changes in a separate .log file. Wait for the process to finish; large files may take several minutes. Do not interrupt the repair.
-
Load the repaired file in Outlook
Open Outlook, go to File > Open & Export > Open Outlook Data File, and select the repaired PST file. Verify that your folders and emails are visible. If the file opens successfully, set it as the default data file under Account Settings.
Common Problems and How to Resolve Them
If scanpst.exe reports that it cannot repair the file, run the tool a second time on the repaired version. Some errors require the file to be repaired multiple times. When the tool states the file is too large, split the PST using Outlook's Archive feature first. Users on Windows 11 sometimes need to run the tool as administrator by right-clicking scanpst.exe and choosing Run as administrator. Always keep the original PST file untouched until you confirm the repaired version works.
Frequently Asked Questions
Does the Outlook Inbox Repair Tool work on Microsoft 365?
Yes. The same scanpst.exe file included with Microsoft 365 desktop apps repairs both classic PST files and cached Exchange OST files.
Can I recover permanently deleted emails with this tool?
No. The Outlook Inbox Repair Tool only fixes structural damage; it does not undelete items removed from the Deleted Items folder.
Is a third-party PST repair program better?
Microsoft recommends trying scanpst.exe first because it is included with Outlook and does not require payment or additional installation.
Conclusion
Running the Outlook Inbox Repair Tool restores access to damaged PST files in most cases when the steps above are followed exactly.