How to Enable SSH for VMhost with PowerCli
To enable SSH:
Get-VMHost <HostName> | Get-VMHostService | Where Key -EQ "TSM-SSH" | Start-VMhostService
To disable SSH:
Get-VMHost <HostName> | Get-VMHostService | Where Key -EQ "TSM-SSH" | Stop-VMHostService -Confirm:$False
– Stuart