From 01db534841f878e1de826c390f9085ef5b033389 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Thu, 19 Oct 2023 17:33:36 +0200 Subject: [PATCH] WAUConfig is returned, check thar instead of WAUPolicies --- 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 e904e4d..cfe3fe1 100644 --- a/Winget-AutoUpdate/Winget-Upgrade.ps1 +++ b/Winget-AutoUpdate/Winget-Upgrade.ps1 @@ -21,7 +21,7 @@ Write-ToLog -LogMsg "CHECK FOR APP UPDATES" -IsHeader #Get settings and Domain/Local Policies (GPO) if activated. $Script:WAUConfig = Get-WAUConfig -if ($($WAUPolicies.WAU_ActivateGPOManagement -eq 1)) { +if ($($WAUConfig.WAU_ActivateGPOManagement -eq 1)) { Write-ToLog "WAU Policies management Enabled." }