Learn about Windows PowerShell
Summary: Use Windows PowerShell to get a list of all volume drive letters and free space available.
How can I use Windows PowerShell to list all the drive letters and free space available?
Use Get-WMIObject and query win32_logicaldisk to show all drive letters including network drives and CD ROMs:
To view this as a table, add Format-Table:
GET-WMIOBJECT win32_logicaldisk | FORMAT-TABLE
Title is misleading if you have volumes that are mounted as mountpoints. Devil in the details. Volumes <> logical disks.The correct answer is get-wmiobject win32_volume