Commit cae6b032 authored by Stefan Scherer's avatar Stefan Scherer

after exception, add restart registry key and restart computer for openssh install

parent 7e26b8cc
......@@ -193,9 +193,12 @@ function Check-WindowsUpdates() {
$global:MoreUpdates=1
} catch {
LogWrite $_.Exception | Format-List -force
LogWrite "Showing SearchResult was unsuccessful. Aborting."
$global:RestartRequired=0
LogWrite "Showing SearchResult was unsuccessful. Rebooting."
$global:RestartRequired=1
$global:MoreUpdates=0
Check-ContinueRestartOrEnd
LogWrite "Show never happen to see this text!"
Restart-Computer
}
} else {
LogWrite 'There are no applicable updates'
......
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