LucD
Leadership
Leadership

I suspect you might be connected to multiple vCenters.

Check what is in $global:defaultviservers.

You can limit your Get-VMHost to a specific vCenter by adding the Server parameter.

Get-VMHost -Server $vcenter


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

View solution in original post

Reply
0 Kudos