######################### # Script Title: Enable SSH Service in ESXi # Author: Zach Milleson # Date: 4.26.2012 ######################### #Specify what Cluster $Cluster = Read-Host "Enter the name of the Cluster" #Gather all hosts connected to vCenter $Hosts = Get-Cluster -Name $Cluster | Get-VMHost #Start the SSH service $service = Get-VMHostService -VMHost $Hosts | Where-Object{$_.key -eq "TSM-SSH"} Set-VMHostService -HostService $service -Policy "On"