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.
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.
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.