kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch18/packer/windows/scripts/win_updates.ps1

3 lines
144 B
PowerShell

Get-PackageProvider -name nuget -force
Install-Module PSWindowsUpdate -confirm:$false -force
Get-WindowsUpdate -Install -acceptall -IgnoreReboot