Ignore exceptions during updates
This commit is contained in:
parent
d05eb95bb1
commit
bfff046e4d
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,11 @@ function Update-WindowsInstallation([Context] $context)
|
||||||
$null = Import-Module PSWindowsUpdate;
|
$null = Import-Module PSWindowsUpdate;
|
||||||
|
|
||||||
Write-Host "Performing Windows Update";
|
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))
|
if ((Get-WURebootStatus -Silent))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue