I am using this parameter to randomly select hosts in a cluster, but I want to be able to exclude a specific host, how would I do this?
Here is the string:
$esx = Get-VMHost -Location $vccluster | Get-Random
What code would I append Get-Random with to exclude a specific host which I have defined as a variable $VMHost
Thanks