From 99793334ab9eeb27cb8fe7da927f059d1ae8571d Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Mon, 7 Mar 2022 10:41:43 +0100 Subject: [PATCH] Fixed issue when gathering xml config file. --- Winget-AutoUpdate/winget-upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index 44af577..b4bb3bc 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -231,7 +231,7 @@ function Get-ExcludedApps{ function Start-WAUUpdateCheck{ #Get AutoUpdate status [xml]$UpdateStatus = Get-Content "$WorkingDir\config\config.xml" -Encoding UTF8 -ErrorAction SilentlyContinue - $AutoUpdateStatus = $UpdateStatus.app.autoupdate + $AutoUpdateStatus = $UpdateStatus.app.WAUautoupdate #Check if AutoUpdate is enabled if ($AutoUpdateStatus -eq $false){