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;