Reply to Message

View discussion in a popup

Replying to:
LucD
Leadership
Leadership

In the last code, I posted those 2 options are already there

Option 1

$esx = Get-VMHost -Name $hostname

Option 2

$esx = Get-VMHost

Not sure what you don't understand.
With option1 there is 1 ESXi node in the $esx variable.
With option 2 all the ESXi nodes are in the $esx variable

 


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos