Get-Volume
SafeVolumes and free space
Get-Volume
Free space and FS health per volume. Pair with Get-Disk for physical HealthStatus.
Examples
Get-Volume | ? {$_.SizeRemaining -lt 10GB}Volumes low on spaceGet-Volume -DriveLetter CDrive C onlyGet-Disk | Select-Object Number,FriendlyName,HealthStatus,OperationalStatusHealth per physical diskGet-Volume -CimSession srv01Check a remote server
Syntax
Get-Volume [-DriveLetter X] / Get-Disk
Key points
- A HealthStatus other than Healthy indicates a file-system or disk problem.
- Volumes with no DriveLetter are recovery partitions and other unlettered areas.
- SizeRemaining and Size are in bytes; divide by 1GB for gigabytes.
When it does not work
- Get-Volume does not exist on Windows 7 / Server 2008 R2 and earlier. Use Get-CimInstance Win32_LogicalDisk instead.
Before you run it
Read only.
Used when you see
Related commands
- dfDisk free space
- chkdskCheck/repair a disk
- Get-PSDriveList PS drives
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store