Add -Install to Get-WUInstall call to actually install Windows Updates.

This commit is contained in:
Alejandro Pauly
2020-01-16 02:21:04 -05:00
parent 1c4a275b64
commit 8185a8bc0c

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