25 marzo 2013

Enable SSH with POWERCLI


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

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

DISABLE WARNING SSH:
Get-VMhost * | Set-VMHostAdvancedConfiguration UserVars.SuppressShellWarning 1


Image by http://vninja.net/

No hay comentarios:

Publicar un comentario