Quantcast
Viewing all articles
Browse latest Browse all 208545

Re: I was so happy when the script was running, but I made a mistake

What does this return ?


foreach  ($VM in $thickVMs) {

          $ds = Get-VMHost -VM $vm | Get-Datastore | where { ($_.name) -ne "ISOs" -and ($vm | Get-Datastore | %{$_.Name}) -notcontains $_.Name} |

                   sort FreespaceGB -Descending | select -First 1 | Select -ExpandProperty Name

          $vm | Select Name,@{N="Datastore";E={$ds}}

}



Viewing all articles
Browse latest Browse all 208545

Trending Articles



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