Files
runner-images/images/win/scripts/Installers/Install-WindowsUpdates.ps1
Shady Ibraheem f396818e23 Inital commit.
2019-11-15 15:38:01 -05:00

11 lines
541 B
PowerShell

################################################################################
## File: Install-WindowsUpdates.ps1
## Desc: Install Windows Updates.
## Should be run at end just before Antivirus.
################################################################################
Write-Host "Run windows updates"
Install-Module -Name PSWindowsUpdate -Force -AllowClobber
Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot
Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreUserInput -IgnoreReboot