File: install_PSWindowsUpdate.ps1

package info (click to toggle)
gitlab-ci-multi-runner 14.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 31,248 kB
  • sloc: sh: 1,694; makefile: 384; asm: 79; ruby: 68
file content (10 lines) | stat: -rw-r--r-- 438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# Install https://www.powershellgallery.com/packages/PSWindowsUpdate so tha we
# can manually download windows update.
Write-Output "Installing PSWindowsUpdate module"

# Make sure we can download from the Powershell Gallery https://www.powershellgallery.com/
Install-PackageProvider -Name NuGet -Force
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

# Install the actual module.
Install-Module -Name PSWindowsUpdate -Force