Last active
February 2, 2017 17:04
-
-
Save joeypiccola/ef2029ad8b0afe0b49465eb6791c42ba to your computer and use it in GitHub Desktop.
This snippet came from http://www.computerperformance.co.uk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-WmiObject Win32_logicaldisk -ComputerName LocalHost | Format-Table DeviceID, MediaType, @{Name="Size(GB)";Expression={[decimal]("{0:N0}" -f($_.size/1gb))}}, @{Name="Free Space(GB)";Expression={[decimal]("{0:N0}" -f($_.freespace/1gb))}}, @{Name="Free (%)";Expression={"{0,6:P0}" -f(($_.freespace/1gb) / ($_.size/1gb))}} -AutoSize |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like this.