Start WinRM service automatically on reboot

This commit is contained in:
jlehtniemi-broadsoft 2016-09-09 14:00:49 +03:00 committed by GitHub
parent c81fe70fbf
commit 5864ae50c6

View file

@ -103,6 +103,8 @@ ElseIf ((Get-Service "WinRM").Status -ne "Running")
{
Write-Verbose "Starting WinRM service."
Start-Service -Name "WinRM" -ErrorAction Stop
Write-Verbose "Start WinRM service automatic"
Set-Service -Name "WinRM" -StartupType Automatic
}
# WinRM should be running; check that we have a PS session config.