Files
runner-images/images/win/scripts/Installers/Install-WindowsUpdates.ps1
T

11 lines
541 B
PowerShell
Raw Normal View History

2019-11-15 15:23:41 -05:00
################################################################################
## 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