Skip to content

Commit

Permalink
add auto install package provider for windows update
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrlaczykowski committed Jun 14, 2024
1 parent 8db8b7f commit 1b7bf7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions windows_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;"
Expand Down

0 comments on commit 1b7bf7e

Please sign in to comment.