github.com/secure-build/gitlab-runner@v12.5.0+incompatible/scripts/vagrant/provision/install_PSWindowsUpdate.ps1 (about)

     1  # Install https://www.powershellgallery.com/packages/PSWindowsUpdate so tha we
     2  # can manually download windows update.
     3  Write-Output "Installing PSWindowsUpdate module"
     4  
     5  # Make sure we can download from the Powershell Gallery https://www.powershellgallery.com/
     6  Install-PackageProvider -Name NuGet -Force
     7  Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
     8  
     9  # Install the actual module.
    10  Install-Module -Name PSWindowsUpdate -Force