Install-WindowsUpdates fixes (#1071)

This commit is contained in:
Jeff Weiner
2020-06-22 01:25:04 -07:00
committed by GitHub
parent f06102ac3a
commit 1a164c38dd
4 changed files with 27 additions and 17 deletions

View File

@@ -1,10 +1,9 @@
################################################################################
## File: Install-WindowsUpdates.ps1
## Desc: Install Windows Updates.
## Should be run at end just before Antivirus.
## Should be run at end, just before SoftwareReport and Finalize-VM.ps1.
################################################################################
Write-Host "Run windows updates"
Install-Module -Name PSWindowsUpdate -Force -AllowClobber
Get-WUInstall -WindowsUpdate -AcceptAll -Install -UpdateType Software -IgnoreReboot
Get-WUInstall -MicrosoftUpdate -AcceptAll -Install -IgnoreUserInput -IgnoreReboot