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

Exclude certain datastores

$
0
0

Hi,

 

Below script excludes one particular datastore from the output, but how can I exclude multiple datastores from the below script,

 

please help

 

Get-Cluster MyClus | Get-Datastore | Sort-Object -Property {$_.FreeSpaceGB} -Descending:$true | where {$_.Name -ne "datastore1"} | Select-Object -ExpandProperty Name -First 1


Viewing all articles
Browse latest Browse all 251313

Trending Articles



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