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

Re: Getting list of VM's on a specific ESX host AND from a specific folder ...

$
0
0

VMHost and folder both use the Get-VM -Location parameter. So you need to select one and filter the other using the Where-Object cmdlet. For example:

 

Get-VMHost$esx_hostname |Get-VM |Where-Object {$_.Folder.Name -eq$folder_name}

Viewing all articles
Browse latest Browse all 232869

Trending Articles



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