From 30351047bf77f5a1b8fa21d7e55f09c156d30da8 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Fri, 12 Aug 2022 09:19:49 +0200 Subject: [PATCH] default settings path for system account changed --- Winget-AutoUpdate-Install.ps1 | 2 +- Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 | 2 +- Winget-AutoUpdate/winget-upgrade.ps1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index c4b826e..89d94da 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -71,7 +71,7 @@ param( <# APP INFO #> -$WAUVersion = "1.13.2" +$WAUVersion = "1.14.0" <# FUNCTIONS #> diff --git a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 index 9c78b12..153a8af 100644 --- a/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 +++ b/Winget-AutoUpdate/functions/Get-WingetOutdatedApps.ps1 @@ -52,5 +52,5 @@ function Get-WingetOutdatedApps { } } - return $upgradeList + return $upgradeList | Sort-Object {Get-Random} } \ No newline at end of file diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index 4091188..0d700ef 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -21,7 +21,7 @@ if (!($WAUConfig.WAU_PostUpdateActions -eq 0)) { #Run Scope Machine funtion if run as system if ([System.Security.Principal.WindowsIdentity]::GetCurrent().IsSystem) { - $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" Add-ScopeMachine $SettingsPath }