1 parent 1b19311 commit 66eaaafCopy full SHA for 66eaaaf
1 file changed
functions/private/Invoke-WinUtilCurrentSystem.ps1
@@ -64,7 +64,11 @@ Function Invoke-WinUtilCurrentSystem {
64
if(test-path $tweak.Path) {
65
$actualValue = Get-ItemProperty -Name $tweak.Name -Path $tweak.Path -ErrorAction SilentlyContinue | Select-Object -ExpandProperty $($tweak.Name)
66
$expectedValue = $tweak.Value
67
- if ($expectedValue -notlike $actualValue) {
+ if ($expectedValue -eq "<RemoveEntry>") {
68
+ if ($null -ne $actualValue) {
69
+ $values += $False
70
+ }
71
+ } elseif ($expectedValue -notlike $actualValue) {
72
$values += $False
73
}
74
} else {
0 commit comments