The Server’s C: Drive Is Almost Full
Before you begin
- Applies to:Windows Server when the system drive is running low on space.
- Where to start:Start on the affected server and inspect C: before moving or deleting files. For graphical checks, use Desktop Experience or an approved Windows management workstation. Use PowerShell 7 or later unless a module requires Windows PowerShell.
- What you need:Use a server operator account with access to volume and application logs. Record the last known free space and recent deployments.
Guide tools
Troubleshooting Steps
Measure free space
Start hereOn the affected server, run the read-only command in PowerShell 7+. Record the free space and the time. If services are already failing, identify the space they need to resume before doing a broad scan.
Get-Volume -DriveLetter C | Select-Object DriveLetter, Size, SizeRemainingFind the growth source
Where to click
- Open File Explorer → This PC → Local Disk (C:).
- Open Properties on the suspected directory and record its size.
What to look for · Start with known log, dump, update, and application data paths. Compare sizes and timestamps with the last change. Avoid following junctions or running a recursive scan over a busy volume without approval.
Reclaim space through the owner
Rotate or archive confirmed application logs through their retention settings. If servicing storage appears to be the cause, run DISM.exe /Online /Cleanup-Image /AnalyzeComponentStore from an elevated shell. Explorer’s folder size can count hard-linked components more than once. Use supported cleanup only if the analysis and maintenance policy support it. Avoid ResetBase during routine cleanup because it prevents uninstalling the updates already installed. Move data using the application’s supported procedure if growth is recurring.
Verify headroom and service health
VerifyRepeat the volume check and verify the affected application can write again. Measure growth after the next normal workload and confirm that retention settings address the cause.
Decide What to Do Next
| Finding | Next action |
|---|---|
| A single log grows rapidly | Identify the producer and fix its retention or the error flooding it. |
| Windows servicing folders dominate | Review supported component-store cleanup with the servicing owner. |
References
Your feedback keeps these production procedures accurate and battle-tested.