Go Go PowerShell Speed Racer! – Speeding up PowerShell scripts.

From the VI Toolkit blog. Can you spot the difference between this code: 1: foreach ($vm in (get-vm)) { 2: $disks = Get-HardDisk -vm $vm 3: foreach ($disk in $disks) { 4:  Write-Host $disk.CapacityKB 5: } 6: } And this code: 1: foreach ($vm in (get-vm)) { 2: $disks = Get-HardDisk -vm $vm.name 3: foreach
-> Continue reading Go Go PowerShell Speed Racer! – Speeding up PowerShell scripts.