Revert "Fix Get Installed toggle detection and multiple config bugs (#3959)" (#4016)

This reverts commit 414cd139e2.
This commit is contained in:
Chris Titus
2026-02-10 13:33:07 -06:00
committed by GitHub
parent 414cd139e2
commit 457f1820c4
4 changed files with 41 additions and 76 deletions

View File

@@ -45,7 +45,7 @@ Function Get-WinUtilToggleStatus {
} else {
Write-Debug "$($regentry.Name) is false (state: $regstate, value: $($regentry.Value), original: $($regentry.OriginalValue))"
}
if ($null -eq $regstate) {
if (!$regstate) {
switch ($regentry.DefaultState) {
"true" {
$regstate = $regentry.Value