Andy90
Enthusiast
Enthusiast

Hello Bean78,

I'm usually not like that, but a THANK YOU might be appropriate instead of always asking for immediate help!!

Did you connect to your vCenter server beforehand? Before you run the script, please issue the command "Connect-VIServer -Server YourvCenterName -User YourUsername". Then please execute the following commands to test what the problem is with you:

 

Connect-VIServer -Server YourvCenterName -User YourUsername

Get-VMHost -Name yourESXHostname

$ESXHost = Get-VMHost -Name yourESXHostname

Get-VMHostService -VMHost $ESXHost

 

Reply
0 Kudos