From d3dfc4c52394963090d750c9881de2ab7cbb9d8f Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Mon, 3 Jul 2023 14:34:39 +0200 Subject: [PATCH] Fix incorrect statement --- scripts/Windows/OS/Upgrade.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/OS/Upgrade.ps1 b/scripts/Windows/OS/Upgrade.ps1 index 40b41a6d..0ced6ab3 100644 --- a/scripts/Windows/OS/Upgrade.ps1 +++ b/scripts/Windows/OS/Upgrade.ps1 @@ -2,7 +2,7 @@ function Update-WindowsInstallation([Context] $context) { - if ($context.GetUACState()) { + if (-not $context.GetUACState()) { Write-Host "Upgrading Windows"; Write-Host "Preparing for Windows Update"; $null = Import-Module PSWindowsUpdate;