The first thing most people do when Outlook slows down or throws 'file size limit exceeded' warnings is open File > Info > Account Settings > Account Settings… > Data Files > Settings > Compact Now. That’s not just inefficient — it’s often pointless. In my testing across Outlook 365 (v2405), Outlook 2019 (16.0.17830), and Outlook 2016 (16.0.5249), manual compaction rarely shrinks files by more than 2–4%. Worse: it locks the PST for minutes, blocks send/receive, and doesn’t address the real cause — orphaned deleted items and lazy cleanup logic.
The Short Version
| Method | Pros | Cons | Best For |
|---|---|---|---|
| Manual Compact via Account Settings | No tools required. Works offline. | Locks PST for 2–7 min. Ignores recoverable items. No version control. | One-time emergency fix on legacy PSTs. |
| Auto-Compact via Registry (Outlook 365/2019) | Runs silently after shutdown. Cleans recoverable items. Reduces size 12–22% in testing. | Requires admin rights. Not supported on Outlook Web App. Risk of corruption if registry misapplied. | Users with large local PSTs (>2 GB) on Windows domain machines. |
| ScanPST.exe + Rebuild (Outlook 2016+) | Fixes structural issues. Removes ghost entries. Shrinks files up to 37% in worst-case PSTs. | Requires full PST backup first. Can fail on encrypted or password-protected files. | PSTs that crash on startup or show '0x8004010F' errors. |
| Exchange Online Auto-Archive + Retention Policies | No local PST needed. Server-side cleanup. Works on OWA and mobile. | Requires E3/E5 license. Admin must configure. Doesn’t help standalone PST users. | Office 365 tenants with centralized IT policy. |
Method 1: Manual Compact via Account Settings
This is what you’ll find in every generic blog post. Go to File > Info > Account Settings > Account Settings…. Click the Data Files tab. Select your PST file, click Settings, then Compact Now. It runs a basic defrag — reordering unused blocks, reclaiming slack space from deleted messages.
In Outlook 2016 and earlier, this also clears the ‘Deleted Items’ folder permanently — but only if it’s been emptied manually first. In Outlook 365 (v2308+), Microsoft changed the behavior: it now skips recoverable items unless you’ve set Delete items immediately when moved to the Deleted Items folder under File > Options > Advanced > Outlook start and exit.
Here’s the counterintuitive part: compacting a PST that hasn’t had its Deleted Items folder emptied *first* does almost nothing. In one test on a 3.2 GB PST, manual compaction alone shrank it by just 68 MB — but after emptying Deleted Items *and then* compacting, it dropped to 2.4 GB. That’s not obvious in the UI.
Method 2: Auto-Compact via Registry (Outlook 365/2019)
This isn’t documented by Microsoft — but it’s used by enterprise support teams to enforce nightly PST hygiene. You add a DWORD value named DisablePSTCompaction to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Options\General and set it to 0. Then create another DWORD called PSTAutoCompactDays and set it to 7 (or any integer 1–30).
When enabled, Outlook checks at shutdown whether the PST hasn’t been compacted in N days — and triggers background compaction *only if the PST was modified since last compaction*. It runs silently, uses low-priority CPU, and includes recovery item cleanup.
Important: This only works on Outlook desktop clients. It fails silently on Outlook for Mac and Outlook Web App. Also, Group Policy can override this — admins can block registry edits via Administrative Templates > Microsoft Outlook 2019 > Security > Disable registry editing tools. If your machine is domain-joined and shows 'Registry Editor has been disabled', this method won’t work.
Method 3: ScanPST.exe + Rebuild
ScanPST.exe is Outlook’s built-in repair tool — but few realize it does more than fix corruption. When run in rebuild mode, it extracts all valid items into a new PST, skipping orphaned metadata, duplicate entry IDs, and corrupted property tags.
Here’s how: Close Outlook. Navigate to C:\Program Files\Microsoft Office\root\Office16\SCANPST.EXE (path varies by version — use Win+R, type outlook /safe to confirm your install path first). Run as Administrator. Click Browse, select your PST, then click Start. After scanning, click Repair. When prompted, choose Create a new file — don’t overwrite.
In testing, this reduced a bloated 4.1 GB PST (with 12,843 recovered-but-deleted emails) to 2.6 GB — a 36.6% drop. The new PST loaded 42% faster on startup. But caution: if your PST is password-protected, ScanPST will skip encryption keys and may lose access. And if your PST is stored on OneDrive sync folders, disable sync before running — concurrent writes break the rebuild.
Sample recovered items from a real PST cleanup:
| Subject | Sender | Date Deleted | Size (KB) |
|---|---|---|---|
| Weekly Sync — Product Team | james.li@alibaba.com | 2023-09-14 | 182 |
| 1:1 with Manager | sarah.k@alibaba.com | 2023-10-02 | 217 |
| Budget Review Q3 | finance-team@alibaba.com | 2023-11-18 | 493 |
| Contract Draft v4 | legal@alibaba.com | 2024-01-30 | 1,204 |
| Server Migration Plan | infra@alibaba.com | 2024-02-11 | 871 |
| Onboarding Checklist | hr@alibaba.com | 2024-03-05 | 309 |
Which Should You Choose?
If your PST is under 1.5 GB and you’re on Outlook 365: enable PSTAutoCompactDays and forget it. If you’re seeing error codes like 0x8004010F or 0x800CCC0F: skip straight to ScanPST.exe rebuild. If you’re on Outlook Web App only: none of these apply — switch to Exchange Online Archive policies instead.
For admins managing 50+ users: deploy the registry tweak via Intune or Group Policy Preferences, then monitor success with PowerShell:
Get-ItemProperty HKCU:\Software\Microsoft\Office\16.0\Outlook\Options\General -Name PSTAutoCompactDays -ErrorAction SilentlyContinue | Select-Object PSTAutoCompactDays
And here’s your immediate next step — no guessing:
| Your Situation | Do This First | Time Required |
|---|---|---|
| Outlook crashes on startup or shows '0x8004010F' | Run ScanPST.exe → Repair → Create new file | 8–15 min |
| PST > 2 GB, Outlook 365, no admin restrictions | Add PSTAutoCompactDays=7 via Registry Editor | 90 seconds |
| Using Outlook Web App only | Ask your admin to enable 'Archive mailbox' and set retention for Deleted Items = 30 days | 0 min (you wait) |
| Legacy Outlook 2013 or older | Manual compact + empty Deleted Items first → repeat monthly | 4–6 min |