List Volumes and Free Space with Get-Volume

One PowerShell line showing drive letters, labels, filesystems and free space for every volume.

WindowsstoragediskpowershellLow risk
Run `Get-Volume` in PowerShell to list all volumes; pipe to Format-Table with SizeRemaining for a free-space report.

01Command

Command
$ Get-Volume | Sort-Object DriveLetter | Format-Table DriveLetter, FileSystemLabel, FileSystem, @{n='SizeGB';e={[math]::Round($_.Size/1GB,1)}}, @{n='FreeGB';e={[math]::Round($_.SizeRemaining/1GB,1)}} -AutoSize

02What it does

Get-Volume queries the Storage cmdlet layer and returns objects, not the fixed text that fsutil or dir produce. Size and SizeRemaining are raw bytes, so dividing by 1GB inside a calculated property gives a human-readable table. It is the modern replacement for the old `wmic logicaldisk` trick and works in both PowerShell 5.1 and 7.

03Risk

RiskLow risk

04Undo

✓No undo needed — this command does not change persistent state.

05Sources

  • Get-Volume (Storage)
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents Get-Volume, which returns volume objects with DriveLetter, FileSystemLabel, FileSystem, Size and SizeRemaining properties.

Last verified: 2026-09-17 · Category: System & Settings

06Related solutions