From b65e72816229af7cc940eba4fd38b3f95d80a951 Mon Sep 17 00:00:00 2001 From: Upgrayedd Date: Wed, 31 Jul 2024 18:51:01 -0500 Subject: [PATCH] Update Windows/PSPatching.ps1 bypass execution policy to avoid issue importing module --- Windows/PSPatching.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Windows/PSPatching.ps1 b/Windows/PSPatching.ps1 index 95ea07e..59720cf 100644 --- a/Windows/PSPatching.ps1 +++ b/Windows/PSPatching.ps1 @@ -1,6 +1,7 @@ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force Install-Module PSWindowsUpdate -Force +Set-ExecutionPolicy bypass Import-Module PSWindowsUpdate