From ff4ba2e7258b8183db5cc13d30a840222a149ac0 Mon Sep 17 00:00:00 2001 From: Mikhail Timofeev <48208649+miketimofeev@users.noreply.github.com> Date: Thu, 10 Jun 2021 09:19:50 +0300 Subject: [PATCH] Don't install KB5003638 update as it breaks the VM (#3557) --- images/win/scripts/Installers/Install-WindowsUpdates.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/images/win/scripts/Installers/Install-WindowsUpdates.ps1 b/images/win/scripts/Installers/Install-WindowsUpdates.ps1 index eb19a3ea0..4c02c9f45 100644 --- a/images/win/scripts/Installers/Install-WindowsUpdates.ps1 +++ b/images/win/scripts/Installers/Install-WindowsUpdates.ps1 @@ -5,4 +5,10 @@ ################################################################################ Write-Host "Run windows updates" +# KB5003638 causes the windows server 2016 virtual machine to hang on shutdown step +if (Test-IsWin16) { + Get-WUInstall -MicrosoftUpdate + Write-Host "Hide update KB5003638" + Hide-WindowsUpdate -Confirm:$false -KBArticleID "KB5003638" +} Get-WUInstall -MicrosoftUpdate -AcceptAll -Install -IgnoreUserInput -IgnoreReboot