Powershell GUI fronted (WPF) to run categorized console scripts

⌈⌋ ⎇ branch:  ClickyColoury


Artifact [85f123f58f]

Artifact 85f123f58fe5748c96ca384dfd9bff0f6c544ecd:

  • File tools/wmi/diskspace.ps1 — part of check-in [20dd6899aa] at 2018-05-16 18:05:13 on branch trunk — Rewrite WMI output into GB. (user: mario size: 547)

# 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