$ 0 0 Got it! I added the following: $vmhostfile = Get-Content "C:\esxihosts.txt" $vmesxi = (Get-VMHost -Name $vmhostfile)