From 1b7bf7e1affc0f7b5094612ef480590ef7c53dbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20=C5=81=C4=85czykowski?= Date: Fri, 14 Jun 2024 16:15:29 +0200 Subject: [PATCH] add auto install package provider for windows update --- windows_update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/windows_update.py b/windows_update.py index 4613103..d5cf9ae 100644 --- a/windows_update.py +++ b/windows_update.py @@ -6,6 +6,7 @@ def windows_update(): # Install the PSWindowsUpdate module if not already installed ps_install_command = ( + "Install-PackageProvider -Name NuGet -Force;" "Install-Module PSWindowsUpdate -Force -AllowClobber -Scope AllUsers; " "Set-ExecutionPolicy Bypass -Scope Process -Force; " "Import-Module PSWindowsUpdate -Force;"