Monday, January 23, 2012

Stopping and starting SSH on ESX multiple

Get-Cluster nameofcluster | Get-VMHost | Foreach { Start-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq “TSM-SSH”} ) }


Get-Cluster nameofcluster | Get-VMHost | Foreach { Stop-VMHostService -HostService ($_ | Get-VMHostService | Where { $_.Key -eq “TSM-SSH”} ) }

No comments:

Post a Comment