From b4d6b651b6209468d06700b8caf75bd432973740 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 22 Jun 2023 17:32:05 +0200 Subject: [PATCH] Fix windows update automation --- scripts/Windows/OS/Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Upgrade.ps1 b/scripts/Windows/OS/Upgrade.ps1 index 657c4337..87765ebd 100644 --- a/scripts/Windows/OS/Upgrade.ps1 +++ b/scripts/Windows/OS/Upgrade.ps1 @@ -7,7 +7,7 @@ function Invoke-Upgrade([Context] $context) Write-Information "Performing Windows Update"; $null = Install-WindowsUpdate -AcceptAll -IgnoreReboot; - if ((Get-WURebootStatus).RebootRequired) + if ((Get-WURebootStatus -Silent)) { Write-Debug "A Reboot is Required!"; Write-Debug "Windows will reboot now and the installation will be continued automatically.";