Tayyip EserIT KNOWLEDGE HUB
TRin
Back to archive

Note · Aug 25, 2026

What is consuming disk space?

Finding full volumes and large folders with safe PowerShell queries.

WindowsPowerShellStorage

Short answer Find the full volume, then measure accessible folders to identify the largest consumer.

?

When to use it

When a workstation or server is unexpectedly low on disk space.

01

Volume usage

Get-Volume | Where-Object DriveLetter | Select-Object DriveLetter,FileSystemLabel,@{N="SizeGB";E={[math]::Round($_.Size/1GB,1)}},@{N="FreeGB";E={[math]::Round($_.SizeRemaining/1GB,1)}}
Note

Identify the critical volume first.

02

Folder size

$Path='C:\ExampleFolder'
$Size=(Get-ChildItem $Path -File -Recurse -Force -ErrorAction SilentlyContinue|Measure-Object Length -Sum).Sum
'{0:N2} GB' -f ($Size/1GB)
Note

Large trees can take time.

!

Caution

Never manually delete files from WinSxS, Installer or protected system folders.