2
0

Added PSGallery to Windows Updates

This commit is contained in:
scarrington 2024-12-12 14:01:36 -06:00
parent caabc90a1c
commit cdc326ee4d

View File

@ -1,5 +1,6 @@
# Script to run the initial Windows Updates # Script to run the initial Windows Updates
Install-packageProvider -Name NuGet -Force SInstall-PackageProvider -Name NuGet -Force
Set-PSRepository -Name 'PSGallery' -InstallationPolicy Trusted
Install-Module -Name PSWindowsUpdate Install-Module -Name PSWindowsUpdate
Import-Module PSWindowsUpdate Import-Module PSWindowsUpdate
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot