Skip to content

Instantly share code, notes, and snippets.

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