From 8185a8bc0c66ddfde68b807cf4bc77a6d30fcba0 Mon Sep 17 00:00:00 2001 From: Alejandro Pauly Date: Thu, 16 Jan 2020 02:21:04 -0500 Subject: [PATCH] Add -Install to Get-WUInstall call to actually install Windows Updates. --- images/win/scripts/Installers/Install-WindowsUpdates.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/images/win/scripts/Installers/Install-WindowsUpdates.ps1 b/images/win/scripts/Installers/Install-WindowsUpdates.ps1 index 040ee8e0..eec8ef0d 100644 --- a/images/win/scripts/Installers/Install-WindowsUpdates.ps1 +++ b/images/win/scripts/Installers/Install-WindowsUpdates.ps1 @@ -6,5 +6,5 @@ Write-Host "Run windows updates" Install-Module -Name PSWindowsUpdate -Force -AllowClobber -Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot -Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreUserInput -IgnoreReboot +Get-WUInstall -WindowsUpdate -AcceptAll -Install -UpdateType Software -IgnoreReboot +Get-WUInstall -MicrosoftUpdate -AcceptAll -Install -IgnoreUserInput -IgnoreReboot