- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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