Show filesystem drives and free space
Build a paste-ready command, then review its compatibility and effects before running it.
Get-PSDrive -PSProvider FileSystemread-onlyno known side effects Compatibility
WindowsVerified for Windows using powershell syntax.
Operational knowledgereview due 2027-01-19
RequirementsGet-PSDriveGet-PSDrive must be installed and available on PATH.
Version supportGet-PSDrive Current supported releasesVerified for windows using powershell syntax; consult compatibility notes for platform-specific differences.
Expected signalsName Used (GB) Free (GB) Provider RootRepresentative successful output; values vary with the selected target and system state.
Known errorsGet-PSDrive: command not foundGet-PSDrive is missing or is not available on PATH.
VerifyGet-PSDrive -PSProvider FileSystemThe 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-PSDriveCommandRuns the Get-PSDrive stage of this one-liner.
02-PSProviderOptionConfigures Get-PSDrive with the -PSProvider option.
03FileSystemArgumentPasses FileSystem to Get-PSDrive.
Example input
Get-PSDrive -PSProvider FileSystem
Example output
Name Used (GB) Free (GB) Provider Root
---- --------- --------- -------- ----
C 181.42 294.86 FileSystem C:\
D 642.18 311.69 FileSystem D:\
Illustrative output — exact values vary by system and data.
Official sources