Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Get a List of All Volumes

$
0
0

Summary: Use Windows PowerShell to get a list of all volume drive letters and free space available.

Hey, Scripting Guy! Question How can I use Windows PowerShell to list all the drive letters and free space available?

Hey, Scripting Guy! Answer Use Get-WMIObject and query win32_logicaldisk to show all drive letters including
          network drives and CD ROMs:

GET-WMIOBJECT win32_logicaldisk

To view this as a table, add Format-Table:

GET-WMIOBJECT win32_logicaldisk | FORMAT-TABLE


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>