Merge pull request #276 from alepauly/actuallyInstallUpdates

Add -Install to Get-WUInstall call to actually install Windows Updates.
This commit is contained in:
Alejandro Pauly
2020-01-16 02:24:40 -05:00
committed by GitHub

View File

@@ -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