Commit 2b3c7a44 authored by Stefan Scherer's avatar Stefan Scherer
Browse files

Enable WinRM after installing updates

parent b1cb13a6
......@@ -30,10 +30,10 @@ function Check-ContinueRestartOrEnd() {
Install-WindowsUpdates
} elseif ($script:Cycles -gt $global:MaxCycles) {
LogWrite "Exceeded Cycle Count - Stopping"
Invoke-Expression "a:\openssh.ps1 -AutoStart"
Invoke-Expression "a:\enable-winrm.ps1"
} else {
LogWrite "Done Installing Windows Updates"
Invoke-Expression "a:\openssh.ps1 -AutoStart"
Invoke-Expression "a:\enable-winrm.ps1"
}
}
1 {
......@@ -230,4 +230,3 @@ if ($global:MoreUpdates -eq 1) {
} else {
Check-ContinueRestartOrEnd
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment