From 95adedab77e6ff83a3dbc132a3dba91db30e25b1 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 e0b8e54c..d8213f1c 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"; };