Skip to content

Instantly share code, notes, and snippets.

@rysstad
Created April 9, 2014 09:02
Show Gist options
  • Save rysstad/10244472 to your computer and use it in GitHub Desktop.
Save rysstad/10244472 to your computer and use it in GitHub Desktop.
Get-WMIObject Win32_LogicalDisk | ForEach-Object {Write-Host $_.DeviceID "Size: " ("{0:N2}" -f ($_.Size / 1GB)) "Gb `t Free:" ("{0:N2}" -f ($_.freespace / 1GB)) "Gb" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment