Skip to content

Instantly share code, notes, and snippets.

@martin9700
Last active October 12, 2015 01:17
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
$Data += [PSCustomObject] @{
Computer = $Computer
Drive = $Disk.DeviceID
VolumeName = $Disk.VolumeName
CapacityGB = "$Tag{0:N2}" -f ($Disk.Size / 1gb)
Usage = "[bar:{0:N0};darkgreen;green]{1:N2}GB Free" -f ($UsedPercent),($Disk.FreeSpace / 1gb)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment