The 500GB System File That Eats Your Hard Drive
Something on your Windows 10 drive is consuming hundreds of gigabytes and the normal tools cannot find it. This guide identifies every known culprit — from hibernation files and shadow copies to runaway backups and the Windows component store — and tells you exactly what is safe to delete, what to leave alone, and what the commands actually do.
Before You Delete Anything — Run a Disk Scanner First
The worst thing you can do with a mysterious large file on a Windows 10 system is start deleting things at random. Some of what Windows hides is deletable without consequence. Some of it is deletable but costs you something useful — like your ability to hibernate, or your system restore points. And some of it is absolutely not deletable without breaking Windows entirely. The difference between those categories is the entire point of this guide.
The reason the standard Windows disk cleanup tool and antivirus scans cannot find your file is that many of the largest space consumers on Windows 10 are intentionally hidden system files and protected directories that normal tools are designed to leave alone. They are not malware. They are not corruption. They are features — hibernation support, system restore capability, Windows update infrastructure — that Windows has allowed to grow without any visible warning or user notification.
Step one, before anything else, is to install a proper disk scanning tool that can see these hidden files and show you exactly what is using your space. The two best free options are WizTree (fastest — scans a 1TB drive in under 10 seconds using the NTFS Master File Table directly) and WinDirStat (slower but produces a treemap visualisation that makes large files visually obvious). Run either one as Administrator — without administrator access, protected system files will not appear in the scan and you will get the same incomplete picture the built-in tools give you.
Meet the Seven Hidden Files That Are Probably Eating Your Drive
Before diving into the diagnostic and fix steps, here is a plain-language account of each known culprit — what it is, why it grows so large, and what category of risk applies to removing it.
Phase 1: Make Hidden Files Visible and Use WizTree to Find the Culprit
Windows hides the largest system files behind two separate visibility layers: the normal "show hidden files" toggle only shows regular hidden files; protected system files require a separate setting. You need both turned on, and you need a scanning tool that runs as Administrator — otherwise you will never see what is actually using your space.
Enable visibility of protected system files in File Explorer
Open File Explorer. Click the View menu at the top, then click Options at the far right. Go to the View tab. Under Advanced settings, find Hidden files and folders and select Show hidden files, folders, and drives. Scroll down and uncheck Hide protected operating system files (Recommended). Windows will show a warning — click Yes. Click Apply, then OK. Now navigate to your C: drive root — you will see hiberfil.sys and pagefile.sys if they exist.
Install WizTree (free) and run it as Administrator
Download WizTree from the official site. After installing, right-click the WizTree icon and select Run as administrator. This is critical — without administrator rights, WizTree cannot read the Master File Table entries for protected system files and will give you an incomplete result. Select your C: drive and click Scan. The scan completes in seconds (even on a 1TB drive) because it reads the NTFS Master File Table directly rather than walking the directory tree. Click the Allocated Size column header to sort from largest to smallest. The item at the top is your biggest space user.
Note the top 5 files and folders by size before doing anything else
Write down or screenshot the top 5 items from WizTree — file path and size. You need this information to pick the right fix in the steps below. If you see hiberfil.sys at 32GB or more, that is your primary fix target. If you see Windows.old, that is an easy win. If WizTree shows that C:\Windows takes up 400GB and you can see WinSxS is very large, you need the DISM and VSS commands in Phase 3. If the space discrepancy is between what WizTree reports as used and what Windows reports as used, the missing space is almost certainly VSS shadow copies hidden in System Volume Information.
Phase 2: Safe Deletions — Work Through These in Order
These are the fixes with the clearest benefit-to-risk ratio. Do them first. In many cases, one of these alone will recover 20–60GB of space in under five minutes.
Fix: hiberfil.sys — disable hibernation if you do not use it
If you never use the Hibernate option (most desktop users never do), this file is wasting space equal to your entire RAM. Disabling hibernation deletes the file immediately and recovers all of that space. Open Command Prompt as administrator (type cmd in the Start search, right-click, select Run as administrator). Type the command below and press Enter. The hiberfil.sys file is deleted immediately — no restart required.
:: The file is deleted immediately. To re-enable hibernation later:
:: powercfg.exe -h on
Fix: Windows.old and Windows Update cleanup via Disk Cleanup
Click Start and type Disk Cleanup. Right-click it and select Run as administrator — without admin rights, the system file categories will not appear. Select your C: drive, click OK, then click Clean up system files (the button at the bottom of the dialog). This re-runs the scan with elevated access and shows additional categories. Check all of the following if they appear: Windows Update Cleanup, Previous Windows installation(s) (this is Windows.old), Temporary files, System error memory dump files, Delivery Optimization Files, and Temporary Internet Files. Click OK, then Delete Files. This is the safest cleanup method Windows provides — it will not touch anything it does not know is safe to remove.
Fix: Use Storage Sense for a second-pass cleanup
Open Settings → System → Storage → Temporary files. This shows a breakdown of temporary file categories with sizes. Select the categories you want to remove — including Downloads folder if it is safe to clear, Recycle Bin, Thumbnails, and Temporary files. Click Remove files. This is complementary to Disk Cleanup and sometimes catches items the older tool misses. While you are in the Storage settings, also check Apps & features — sort installed applications by size and look for anything unexpectedly large or no longer needed.
Phase 3: The Most Common Cause of 200–500GB Loss — VSS Shadow Copies with No Size Limit
If the easy fixes above did not recover the space you expected, the culprit is almost certainly Volume Shadow Copy Service (VSS) shadow copies inside the System Volume Information folder — and specifically a scenario where the maximum allowed storage for shadow copies has been set to UNBOUNDED. This means Windows has no ceiling on how much disk space shadow copies can consume, and over time — particularly after years of Windows updates and installed software — the shadow copy database has grown to fill hundreds of gigabytes.
This is the scenario responsible for the 221GB recovery and 500GB recoveries documented in the community reports at the top of this article. Your antivirus will not flag this. Disk Cleanup will not fully address it. The only way to check it and fix it is via the vssadmin command-line tool.
Check what VSS is actually using on your drive
Open Command Prompt as administrator. Run the command below. The output shows the current shadow copy storage usage and — critically — the maximum allowed size. If it shows Maximum Shadow Copy Storage space: UNBOUNDED, you have found your culprit. If it shows a specific percentage (like 10% or 15%) and the usage is near that limit, the limit is working but may need adjustment.
:: Example output showing the UNBOUNDED problem:
:: Shadow Copy Storage volume: (C:)\Device\HarddiskVolumeShadowCopy1
:: Used Shadow Copy Storage space: 420 GB (87%)
:: Allocated Shadow Copy Storage space: 450 GB (93%)
:: Maximum Shadow Copy Storage space: UNBOUNDED (100%) ← THIS IS THE PROBLEM
Set the VSS limit to a sensible maximum and delete excess shadow copies
Run the first command to set a reasonable maximum (10% of your drive is appropriate for most home systems — enough for a few restore points but not enough to consume hundreds of GB). Then use Disk Cleanup to remove old shadow copies down to the most recent one. Note: this will delete your System Restore history beyond the most recent restore point. If your system is running well and you do not need to roll back to an old state, this is completely safe.
:: Alternatively, set a fixed GB limit (e.g. 15GB):
vssadmin resize shadowstorage /on=C: /for=C: /maxsize=15GB
:: Step 2: List all existing shadow copies to see how many there are vssadmin list shadows
:: Step 3: Delete all but the most recent shadow copy :: SAFER: Do this via Disk Cleanup GUI (see below) rather than vssadmin delete :: GUI method: Disk Cleanup → Clean up system files → More Options tab :: → System Restore and Shadow Copies → Clean up → Delete
Phase 4: WinSxS and the Windows Installer Folder
If you have completed Phases 1–3 and still have unexplained space consumption, the remaining culprits are the Windows component store (WinSxS) and the Windows Installer cache. Both require specific tools — manual deletion of files from either location will break Windows in ways that are very difficult to repair.
Cleaning WinSxS safely with DISM
Never delete files from C:\Windows\WinSxS manually. The folder is larger than it appears in File Explorer because Windows counts hard-linked files multiple times — the actual disk use is often 40–60% less than the reported size. The safe way to reduce it is DISM (Deployment Image Servicing and Management), which identifies and removes components that are no longer needed while leaving the ones required for updates and rollbacks intact.
:: Step 2: Run the cleanup (safe — removes components no longer needed for updates) DISM /Online /Cleanup-Image /StartComponentCleanup
:: Optional Step 3: Deeper cleanup — removes ability to uninstall old updates :: Only use this if your system is stable and you are certain you will not roll back updates :: This operation is IRREVERSIBLE DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
:: Each command takes 10-30 minutes. Do not close the window. :: "The operation completed successfully" means it worked.
Cleaning the Windows Installer cache safely with PatchCleaner
The C:\Windows\Installer folder holds .msi and .msp installer files that Windows keeps so installed programs can be repaired, updated, and uninstalled without the original media. On systems with years of software installations, this folder can balloon to 200GB or more — primarily from .msp patch files left behind by software that has been uninstalled but did not clean up its patch cache.
Do not delete files from this folder directly. Use PatchCleaner (free download from homedev.com.au), which compares the contents of the Installer folder against your installed programs database and identifies which files are genuinely orphaned versus which ones are still needed. Critically, PatchCleaner defaults to moving orphaned files to another location rather than deleting them immediately — this lets you test your system for a week or two before permanently committing to the deletion. If nothing breaks in that period, delete the moved files.
Phase 5: Right-Sizing the Page File
The page file (pagefile.sys) is Windows virtual memory — overflow storage used when your physical RAM fills up. By default, Windows manages the size automatically and often sets it very large: 1.5× to 3× your installed RAM. On a machine with 32GB RAM, this can consume 48–96GB of storage. On a machine with 64GB RAM, over 100GB.
The page file should not be deleted entirely — Windows uses it for crash dumps and some applications explicitly require it. But it can be right-sized. If your machine has 16GB or more of RAM and you rarely run memory-intensive workloads (video editing, virtual machines, large databases), a page file of 4–8GB is sufficient and will recover significant space compared to the Windows default.
Open the Virtual Memory settings
Right-click This PC on your desktop (or in File Explorer) and select Properties. Click Advanced system settings on the left. In the System Properties window, click the Advanced tab. Under the Performance section, click Settings. In the Performance Options window, click the Advanced tab. Under Virtual memory, click Change.
Set a custom size instead of Windows-managed
Uncheck Automatically manage paging file size for all drives. Select your C: drive. Select Custom size. Set both Initial size and Maximum size to 4096 MB (4GB) if you have 16GB+ RAM, or 8192 MB (8GB) if you have 8GB RAM. Click Set, then OK. Restart your computer for the new page file size to take effect. The old pagefile.sys file is replaced with the new smaller one on restart.
Is It Actually Malware? How to Tell
The scenario described in this article — a massive file that standard antivirus does not detect — is almost always a legitimate Windows system file or bloated feature rather than malware. Real malware that consumes hundreds of gigabytes of disk space is extremely unusual because malware that obvious would trigger immediate investigation (as it did here) and most malware wants to stay invisible precisely by not consuming noticeable resources.
That said, there are some malware types that do occupy large amounts of storage — particularly cryptomining malware (which downloads large datasets), botnet malware (which stores data for exfiltration), and ransomware (which may encrypt and re-save files, temporarily doubling their disk footprint during the encryption process).
If WizTree identifies a very large file or folder in an unusual location — not in C:\Windows, C:\Program Files, or C:\Users — that you do not recognize and that is not one of the named system files in this guide, treat it with suspicion. The specific indicators to look for:
- A large folder in a deeply nested, randomly-named subdirectory of C:\Users\[name]\AppData\Roaming or C:\Users\[name]\AppData\Local\Temp
- A large .vhd or .vhdx file outside of expected locations (WSL virtual disk files are normal in C:\Users\[name]\AppData\Local\Packages; similar files outside this location are suspicious)
- A large file with a randomised name (like a3f7c2d.sys) in the root of C:
- Disk space that disappears and reappears — this can indicate active encryption in progress
If you find something suspicious, do not delete it directly. Run Windows Defender Offline Scan (which scans before Windows loads, catching malware that hides in the running OS) and also upload the suspicious file to VirusTotal (virustotal.com) which scans it against 70+ antivirus engines simultaneously.
Key Takeaways
Related FAVRITE Articles
- How to Reset an Azure Virtual Machine to Factory Settings Using a Managed Disk
- Designing a Secure File Storage Architecture in Azure
- Azure Files Deep Dive: Lessons from a 15TB Production Migration
- Key Considerations Before Migrating File Shares to Azure