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

Re: Command powershell for choise good esx

$
0
0

You can specify that the ESXi should be in a "connected" state

$esx = Get-Datastore xxxxx | Get-VMHost -State Connected

if($esx){

   $rEsx = $esx | Get-Random

   ....

}

If $esx is empty, the code block following the If-statement will not be executed.


Viewing all articles
Browse latest Browse all 230663

Trending Articles



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