From cdc326ee4d3e6e3e5475cbe3c5217f98c0d6f0fd Mon Sep 17 00:00:00 2001 From: scarrington Date: Thu, 12 Dec 2024 14:01:36 -0600 Subject: [PATCH] Added PSGallery to Windows Updates --- Patches/Initial-Windows-Updates.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Patches/Initial-Windows-Updates.ps1 b/Patches/Initial-Windows-Updates.ps1 index baa677f..a6282ca 100644 --- a/Patches/Initial-Windows-Updates.ps1 +++ b/Patches/Initial-Windows-Updates.ps1 @@ -1,5 +1,6 @@ # 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 Import-Module PSWindowsUpdate Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -Install -IgnoreReboot