# api: multitool
# version: 0.2
# title: Disk space
# description: List logicaldisks / free space
# type: inline
# category: wmi
# hidden: 0
# key: w3|service|services
# config: {}
#
# list services on remote machine
Param(
$machine = (Read-Host "Machine")
)
$ls = Get-WmiObject win32_logicaldisk -computer $machine
$ls = $ls |Select DeviceID, DriveType,
ProviderName,
@{n="FreeSpace";e={"$([math]::round($_.FreeSpace/1GB, 2)) GiB"}},
@{n="Size";e={"$([math]::round($_.Size/1GB)) GiB"}},
VolumeName
$ls | FL