From f010e1a03d4197c01d86ddc9cf4bca611aecb783 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 16 Aug 2024 16:43:30 +0200 Subject: [PATCH] Install powershell modules for all users --- scripts/Windows/OS/Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index 127d072a..b8b1eca4 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -156,8 +156,8 @@ $null = New-Module { Install-ChocoPackage selenium-gecko-driver firefox; Invoke-Hook "Install-PSModules" -Fallback { - Install-Module -AcceptLicense -Force PSWindowsUpdate; - Install-Module -AcceptLicense -Force PSScriptAnalyzer; + Install-Module -Scope AllUsers -AcceptLicense -Force PSWindowsUpdate; + Install-Module -Scope AllUsers -AcceptLicense -Force PSScriptAnalyzer; . "$PSScriptRoot/../Software/PinnedItem/Manage.ps1"; };