Skip to content

Commit 66eaaaf

Browse files
authored
Fixes to Get installed tweaks does not handle <RemoveEntry> value (ChrisTitusTech#3892)
1 parent 1b19311 commit 66eaaaf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

functions/private/Invoke-WinUtilCurrentSystem.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ Function Invoke-WinUtilCurrentSystem {
6464
if(test-path $tweak.Path) {
6565
$actualValue = Get-ItemProperty -Name $tweak.Name -Path $tweak.Path -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $($tweak.Name)
6666
$expectedValue = $tweak.Value
67-
if ($expectedValue -notlike $actualValue) {
67+
if ($expectedValue -eq "<RemoveEntry>") {
68+
if ($null -ne $actualValue) {
69+
$values += $False
70+
}
71+
} elseif ($expectedValue -notlike $actualValue) {
6872
$values += $False
6973
}
7074
} else {

0 commit comments

Comments
 (0)