2020 | Scott W. Head  |  Sr. Systems Admin | Certified Microsoft Windows Server Administrator

PowerShell PowerCLI VMHost Service Status

   
        $VMHosts=get-vmhost 
        
        Foreach($Hosts in $VMHosts){
        
        write-host "-----$Hosts----"
        
        Get-VMHostService -VMHost $Hosts | Select Key, Running | format-table -AutoSize
        
        }