github.com/nilium/gitlab-runner@v12.5.0+incompatible/scripts/vagrant/provision/windows_update.ps1 (about)

     1  # Please make sure https://www.powershellgallery.com/packages/PSWindowsUpdate/2.1.0.1 is installed.
     2  if (Get-Command -Module PSWindowsUpdate -errorAction SilentlyContinue)
     3  {
     4      Write-Output "Running windows update"
     5      Install-WindowsUpdate -AcceptAll -IgnoreReboot
     6  } 
     7  else
     8  {
     9      Write-Error "PSWindowsUpdate is not installed, please check https://www.powershellgallery.com/packages/PSWindowsUpdate/"
    10  }