Hi!
How i can get sum of VCPU of vms from array?
Whats wrong in my script?
$newvms = @( "myvm01", "myvm02" ) Foreach ($newvm in $newvms) { $report = Get-VM | ? name -Like $newvms* } $report | Measure-Object numcpu -Sum
Hi!
How i can get sum of VCPU of vms from array?
Whats wrong in my script?
$newvms = @( "myvm01", "myvm02" ) Foreach ($newvm in $newvms) { $report = Get-VM | ? name -Like $newvms* } $report | Measure-Object numcpu -Sum