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

Re: Get all VMs in givencluster on specific datastore

$
0
0

This one seems to work so far.

But I have to add that I would need to find the VMs on several datastores. Like all datastores starting with TEST*.

 

Using this doesnt seem to work:

$ds = Get-Datastore "TEST*"
Get-Cluster Test| Get-VM | where {$_.DatastoreIdList -contains $ds.ExtensionData.Moref}

 

But this finds the correct datastores:

Get-Datastore "TEST*"


Viewing all articles
Browse latest Browse all 228631

Trending Articles



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