diff --git a/scripts/Windows/OS/Upgrade.ps1 b/scripts/Windows/OS/Upgrade.ps1 index 1558be30c..bc9afe622 100644 --- a/scripts/Windows/OS/Upgrade.ps1 +++ b/scripts/Windows/OS/Upgrade.ps1 @@ -15,7 +15,7 @@ function Invoke-Upgrade([Context] $context) Restart-Computer; exit; } - elseif ((Get-WindowsUpdate).Count -gt 0) + elseif ((Get-WindowsUpdate -IgnoreReboot).Count -gt 0) { Write-Information "More updates are available. Restarting upgrade routine."; $null = Invoke-Upgrade $context;