From 66eaaaf9bfe8864963108212762fef5bde7ed1d3 Mon Sep 17 00:00:00 2001 From: ozgur <96927197+ogfrm@users.noreply.github.com> Date: Wed, 14 Jan 2026 12:36:45 -0500 Subject: [PATCH] Fixes to Get installed tweaks does not handle value (#3892) --- functions/private/Invoke-WinUtilCurrentSystem.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/private/Invoke-WinUtilCurrentSystem.ps1 b/functions/private/Invoke-WinUtilCurrentSystem.ps1 index 82d7938f..fe4778cb 100644 --- a/functions/private/Invoke-WinUtilCurrentSystem.ps1 +++ b/functions/private/Invoke-WinUtilCurrentSystem.ps1 @@ -64,7 +64,11 @@ Function Invoke-WinUtilCurrentSystem { if(test-path $tweak.Path) { $actualValue = Get-ItemProperty -Name $tweak.Name -Path $tweak.Path -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $($tweak.Name) $expectedValue = $tweak.Value - if ($expectedValue -notlike $actualValue) { + if ($expectedValue -eq "") { + if ($null -ne $actualValue) { + $values += $False + } + } elseif ($expectedValue -notlike $actualValue) { $values += $False } } else {