#start vmhost services Get-VMHost ` | ForEach {start -VMHostService -HostService ($_ | Get-VMHostService | Where {$_.Key -eq “TSM-SSH”})}
#stop vmhost services Get-VMHost ` | ForEach {Stop-VMHostService -HostService ($_ | Get-VMHostService | Where {$_.Key -eq “TSM-SSH”}) -Confirm:$FALSE}
#get vmhost services status Get-VMHost | get-vmhostservice
转载于:https://blog.51cto.com/timefiles/1956855