remove helper console logs

This commit is contained in:
MyDrift 2024-12-10 23:22:03 +01:00
parent a2c31008cf
commit faad84da46

View File

@ -46,19 +46,15 @@ Function Get-WinUtilToggleStatus {
Write-Debug "$($regentry.Name) is false (state: $regstate, value: $($regentry.Value), original: $($regentry.OriginalValue))"
}
if (!$regstate) {
write-host "missing $($regentry.Name)"
switch ($regentry.DefaultState) {
"true" {
write-host "true"
$regstate = $regentry.Value
$count += 1
}
"false" {
write-host "false"
$regstate = $regentry.OriginalValue
}
default {
write-host "default"
Write-Error "Entry for $($regentry.Name) does not exist and no DefaultState is defined."
$regstate = $regentry.OriginalValue
}