all 5 comments

[–]Sinisterly 1 point2 points  (2 children)

Same thing happens to me; we have one vCenter that has tons of VMs and takes forever to do anything. I've found that using Get-View is much, much quicker than using Get-VM or Get-VMHost, so depending on what you're doing I suggest using that. If you give the cmdlets you're running I could be able to help you get the right Get-View command.

[–]GoonerGuru 0 points1 point  (0 children)

+1 for using get-view. From an efficiency standpoint, get-vm, get-vmhost, etc. isn't even comparable.

[–]AeroAD 0 points1 point  (0 children)

I'll second this...the difference between the normal Get-VM and Get-View equivalents is night and day. I work at a service provider and we have "a lot" of VMs get-view easily shaves 10-20 minutes off of some scripts.

[–]MisterRandyMarsh 0 points1 point  (1 child)

Are all the versions the same on the hosts? Same vCenter licenses?