PST File Repair: How to Fix a Corrupt Outlook Data File
If Outlook won’t open your PST file or shows errors like “file access deniedâ€� or “Outlook data file cannot be accessed,â€� you need to repair the PST file. The built-in Microsoft tool, Scanpst.exe (Inbox Repair Tool), can fix many common corruption issues, and you can run it from a simple command line. This article explains what PST files are, why they get corrupted, how to use the built-in repair tool, and what to do when the built-in tool isn’t enough.
What Is a PST File?
A PST (Personal Storage Table) file is the data file that Microsoft Outlook uses to store your emails, contacts, calendar items, tasks, and notes. When you set up an email account in Outlook, it creates a PST file on your computer’s hard drive, typically in the Documents\Outlook Files folder on Windows. The file has a .pst extension and can grow to several gigabytes in size, especially if you’ve been using Outlook for years without archiving.
PST files are proprietary to Microsoft, and the format has changed over the years. Older versions of Outlook (2002 and earlier) used an ANSI format, while newer versions (2003 and later) use a Unicode format that supports larger file sizes (up to 20 GB in Outlook 2003-2007, and up to 50 GB in Outlook 2010 and later). The repair process is the same for both formats, but the tools are version-specific.
Why Do PST Files Get Corrupted?
PST file corruption can happen for several reasons, and understanding the cause can help you prevent future issues. Here are the most common culprits:
- Unexpected shutdowns: If your computer loses power or crashes while Outlook is writing to the PST file, the file can become inconsistent.
- Disk errors: Bad sectors on your hard drive can damage the PST file, especially if the file is large and fragmented.
- File size limits: Older PST formats have a 2 GB limit, and exceeding it can cause corruption. Even newer formats have limits, and hitting them can cause problems.
- Antivirus scanning: Some antivirus programs scan PST files while Outlook is using them, which can interfere with the file and cause corruption.
- Network drives: Storing a PST file on a network drive is not supported by Microsoft and can lead to corruption because the file isn’t designed for network access.
- Malware: Viruses or other malicious software can damage the PST file or the Outlook installation.
How to Use Scanpst.exe (Inbox Repair Tool)
The Inbox Repair Tool is a free utility that comes with Microsoft Outlook. It scans your PST file for errors and attempts to fix them. Here’s how to use it:
- Close Outlook completely. Make sure no Outlook processes are running (check the system tray for the Outlook icon and right-click to exit).
- Locate Scanpst.exe. The file is usually in one of these locations, depending on your Outlook version:
- Outlook 2019, 2016, 2013:
C:\Program Files\Microsoft Office\root\Office16\(or Office15 for 2013) - Outlook 2010:
C:\Program Files\Microsoft Office\Office14\ - Outlook 2007:
C:\Program Files\Microsoft Office\Office12\
If you have a 32-bit version of Office on a 64-bit Windows, the path will include
(x86). - Outlook 2019, 2016, 2013:
- Run Scanpst.exe. Double-click the file. A window will open asking for the PST file location. Click Browse to find your PST file (usually in
Documents\Outlook Files). - Click Start. The tool will scan the file and report any errors. If it finds errors, you’ll be prompted to make a backup before repairing. It’s a good idea to click Backup and save a copy of the file before proceeding.
- Click Repair. The tool will attempt to fix the errors. This can take a while for large files.
- Restart Outlook. After the repair, open Outlook to see if the issue is resolved.
If the repair is successful, you’ll see a message saying “The repair process is complete.â€� If not, you may need to run the tool again with the “Scanâ€� option, or consider using a third-party tool.
What to Do When Scanpst.exe Fails
Scanpst.exe is not a miracle worker. It can fix minor errors, but it often fails on severely corrupted files. If the tool doesn’t fix the problem, you have a few options:
- Try a different Scanpst version: Sometimes the version that comes with your Outlook is outdated. You can download a newer version of Scanpst.exe from Microsoft’s website (search for “Inbox Repair Toolâ€� on the Microsoft Download Center).
- Create a new PST file: You can create a new PST file in Outlook and then import the old data using the Import/Export feature. This won’t fix the old file, but it can recover some data if the old file is partially readable.
- Use a third-party PST repair tool: There are many commercial tools (like Stellar Phoenix PST Repair, Kernel for Outlook PST Repair) that claim to recover data from severely corrupted PST files. These tools are not free, but they often have a demo version that lets you preview what can be recovered before you pay.
- Contact Microsoft Support: If the PST file is critical and you can’t afford to lose it, Microsoft offers a paid support service that can attempt to recover the data.
How to Avoid PST Corruption in the Future
Prevention is better than cure. Here are some tips to reduce the risk of PST corruption:
- Always shut down Outlook properly: Use the File > Exit option, not just closing the window.
- Keep your PST file size under control: Archive old emails regularly to keep the PST file manageable.
- Store PST files on a local drive: Avoid network drives and cloud-synced folders like OneDrive or Dropbox, as these can cause file locking issues.
- Exclude PST files from antivirus scanning: Add your PST file location to the antivirus exclusion list to prevent conflicts.
- Back up your PST file regularly: Copy the file to an external drive or cloud storage (but not a cloud-synced folder) to have a recent copy in case of corruption.
Frequently Asked Questions
Can I repair a PST file without Outlook?
Yes, you can use Scanpst.exe even if Outlook is not installed, as long as you have the tool. However, you’ll need to know the location of your PST file. If you don’t have Outlook installed, you can also use third-party tools that work independently.
How long does PST repair take?
The time depends on the size of the PST file and the extent of the corruption. A small file (a few hundred MB) might take a few minutes, while a 20 GB file could take over an hour. The tool shows progress, so you can see how it’s going.
Will PST repair delete my emails?
No, the repair process is designed to fix the file structure without deleting your data. However, in some cases, the tool may discard items that are too corrupted to recover. That’s why it’s important to make a backup before running the repair.
What’s the difference between Scanpst.exe and OST repair?
OST (Offline Storage Table) files are used for cached Exchange or Microsoft 365 accounts. They are similar to PST files but are not your primary data store; they’re a copy of the server data. If your OST is corrupted, you can simply delete it and let Outlook recreate it from the server. PST repair is more critical because PST files often contain the only copy of your data.
Can I repair a PST file on a Mac?
Outlook for Mac uses a different file format (.olm), so PST repair tools are Windows-only. If you have a PST file that you need to access on a Mac, you can use a third-party converter to convert it to OLM format, but that’s a separate process.
Is it safe to use third-party PST repair tools?
Most reputable tools are safe, but you should always download them from the official vendor’s website and read reviews. Be cautious of free tools that ask for your email or install additional software. Always back up your PST file before using any repair tool, including the built-in one.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.