2 Replies Latest reply on Dec 9, 2019 12:34 AM by ganapa2000

    Exclude certain datastores

    ganapa2000 Hot Shot

      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