mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
Add -Install to Get-WUInstall call to actually install Windows Updates.
This commit is contained in:
@@ -6,5 +6,5 @@
|
|||||||
|
|
||||||
Write-Host "Run windows updates"
|
Write-Host "Run windows updates"
|
||||||
Install-Module -Name PSWindowsUpdate -Force -AllowClobber
|
Install-Module -Name PSWindowsUpdate -Force -AllowClobber
|
||||||
Get-WUInstall -WindowsUpdate -AcceptAll -UpdateType Software -IgnoreReboot
|
Get-WUInstall -WindowsUpdate -AcceptAll -Install -UpdateType Software -IgnoreReboot
|
||||||
Get-WUInstall -MicrosoftUpdate -AcceptAll -IgnoreUserInput -IgnoreReboot
|
Get-WUInstall -MicrosoftUpdate -AcceptAll -Install -IgnoreUserInput -IgnoreReboot
|
||||||
|
|||||||
Reference in New Issue
Block a user