Skip to content

Commit 3f81a38

Browse files
committed
Fix machine scope
1 parent f434df4 commit 3f81a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

winget-install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function Get-WingetCmd {
8383
function Add-ScopeMachine {
8484
#Get Settings path for system or current user
8585
if ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) {
86-
$SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\settings.json"
86+
$SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\defaultState\settings.json"
8787
}
8888
else {
8989
$SettingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"

0 commit comments

Comments
 (0)