diff --git a/scripts/Windows/OS/Upgrade.ps1 b/scripts/Windows/OS/Upgrade.ps1 index dce5ee55..9c6a4aa8 100644 --- a/scripts/Windows/OS/Upgrade.ps1 +++ b/scripts/Windows/OS/Upgrade.ps1 @@ -9,7 +9,11 @@ function Update-WindowsInstallation([Context] $context) $null = Import-Module PSWindowsUpdate; Write-Host "Performing Windows Update"; - $null = Install-WindowsUpdate -AcceptAll -IgnoreReboot -ErrorAction "SilentlyContinue"; + + try { + $null = Install-WindowsUpdate -AcceptAll -IgnoreReboot -ErrorAction "SilentlyContinue"; + } + catch { } if ((Get-WURebootStatus -Silent)) {