$SSHDaemonSvc = Get-Service -Name ‘sshd’
Set-Service -Name $SSHDaemonSvc.Name -StartupType Automatic
Start-Service -Name $SSHDaemonSvc.Name

Get-Service sshd
Start-Service sshd
Stop-Service sshd
Restart-Service sshd

Posted by wakira
,