This Blog is to share our knowledge and expertise on Linux System Administration and VMware Administration

Tuesday, October 13, 2015

Single line Powercli command to find whether SSH service Running or not in all your ESXI ...

Powercli command to find whether SSH service is Running on ESXI.

Get-VMHost | Get-VMHostService | Where { $_.Key -eq "TSM-SSH" } |select VMHost, Label, Running

or


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

Hope it is useful !

No comments:

Post a Comment