Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 228891

Re: Get-VM foreach loop slow?

$
0
0

Quick remark, you can make execution time a bit shorter by placing the filter (Where-clause) before the data handling (Select).

 

Get-VM-name$arrVmlist|Where-Object {$_.Version-eq"v7"} |SelectName,Version

 

There will be the same or less objects presented to the Select-Object cmdlet.


Viewing all articles
Browse latest Browse all 228891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>