Show Windows volume health and free space
Build a paste-ready command, then review its compatibility and effects before running it.
Get-Volume | Sort-Object DriveLetter | Select-Object DriveLetter,FileSystemLabel,FileSystem,HealthStatus,SizeRemaining,Sizeread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-20
RequirementsGet-VolumeGet-Volume must be installed and available on PATH.
Version supportGet-Volume Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsDriveLetter FileSystemLabel FileSystem HealthStatus SizeRemaining SizeRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-Volume: command not foundGet-Volume is missing or is not available on PATH.
VerifyGet-Volume | Sort-Object DriveLetter | Select-Object DriveLetter,FileSystemLabel,FileSystem,HealthStatus,SizeRemaining,SizeThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01Get-VolumeCommandRuns the Get-Volume stage of this one-liner.
02|PipelinePasses the output on the left to the command on the right.
03Sort-ObjectCommandRuns the Sort-Object stage of this one-liner.
04DriveLetterArgumentPasses DriveLetter to Sort-Object.
05|PipelinePasses the output on the left to the command on the right.
06Select-ObjectCommandRuns the Select-Object stage of this one-liner.
07DriveLetter,FileSystemLabel,FileSystem,HealthStatus,SizeRemaining,SizeArgumentPasses DriveLetter,FileSystemLabel,FileSystem,HealthStatus,SizeRemaining,Size to Select-Object.
Example input
Get-Volume | Sort-Object DriveLetter | Select-Object DriveLetter,FileSystemLabel,FileSystem,HealthStatus,SizeRemaining,Size
Example output
DriveLetter FileSystemLabel FileSystem HealthStatus SizeRemaining Size
----------- --------------- ---------- ------------ ------------- ----
C System NTFS Healthy 214748364800 536870912000
Illustrative output — exact values vary by system and data.
Official sources