Show Statistics for the selected VM


The next script shows a variety of statistics for the VM inculding : ballooning, Swap, CPU, Uptime.. etc..

Target Type: Virtual Machine
Output format: action
param
(
[Parameter(Mandatory=$true)]
[VMware.VimAutomation.ViCore.Types.V1.Inventory.VirtualMachine[]]
$vParam
);

$vm = Get-VM $vParam
$vmm = $vm |get-view
$vmm.summary.quickstats

quicks