execute the code below after connecting to your VI server: change values as needed: example: C:\PS>Connect-VIServer -Server 10.23.112.235 -Protocol https -User Administrator -Password pass01 Get-VM | where {$_.name -like “*publ*”} | Select Name, VMHost, NumCpu, MemoryMB, ` @{N=”CPU Usage (Average), Mhz” ; E={[Math]::Round((($_ | Get-Stat -Stat cpu.usagemhz.average -Start (Get-Date).AddDays(-30) -IntervalMins 5 | Measure-Object […]