Revert "win_security_policy: allow removing values (resolves #40869) (#41125)" (#41986)

This reverts commit f2bd6b6bfd.
This commit is contained in:
Jordan Borean
2018-06-27 09:37:37 +10:00
committed by GitHub
parent f2bd6b6bfd
commit cc97e89620
2 changed files with 0 additions and 40 deletions

View File

@@ -194,8 +194,6 @@ if ($will_change -eq $true) {
if ($new_value -cne $value) {
Fail-Json $result "Failed to change the value for key '$key' in section '$section', the value is still $new_value"
}
} elseif ([string]$value -eq "") {
# Value was empty, so OK if no longer in the result
} else {
Fail-Json $result "The key '$key' in section '$section' is not a valid key, cannot set this value"
}