We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f434df4 commit 3f81a38Copy full SHA for 3f81a38
winget-install.ps1
@@ -83,7 +83,7 @@ function Get-WingetCmd {
83
function Add-ScopeMachine {
84
#Get Settings path for system or current user
85
if ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) {
86
- $SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\settings.json"
+ $SettingsPath = "$Env:windir\System32\config\systemprofile\AppData\Local\Microsoft\WinGet\Settings\defaultState\settings.json"
87
}
88
else {
89
$SettingsPath = "$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json"
0 commit comments