Ignore non-functioning update
This commit is contained in:
parent
055f1706f9
commit
df0ba4da11
1 changed files with 3 additions and 1 deletions
|
@ -18,7 +18,9 @@ function Update-WindowsInstallation([Context] $context)
|
||||||
$context.Reboot();
|
$context.Reboot();
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
elseif ((Get-WindowsUpdate -IgnoreReboot).Count -gt 0)
|
elseif (
|
||||||
|
((Get-WindowsUpdate -IgnoreReboot).Count -gt 0) -and
|
||||||
|
((Get-WindowsUpdate -IgnoreReboot).KB -ne "KB2267602"))
|
||||||
{
|
{
|
||||||
Write-Information "More updates are available. Restarting upgrade routine.";
|
Write-Information "More updates are available. Restarting upgrade routine.";
|
||||||
$null = Update-WindowsInstallation $context;
|
$null = Update-WindowsInstallation $context;
|
||||||
|
|
Loading…
Reference in a new issue