Can anyone explain why both of these return true? The key exists and is set to 1.
Q: (exists value “EnableTCPChimney” whose (“0” != it as string as hexadecimal) of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters” of native registry)
A: True
Q: (exists value “EnableTCPChimney” whose (“1” != it as string as hexadecimal) of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters” of native registry)
isn’t actually doing what you think it is doing. You’ll see what I mean if you change the “not equals” to “equals”… you will get False for each example.
It might be easier to just approach the problem like this:
((value “EnableTCPChimney” of key “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters” of native registry) as string) != “01”
That’s an illustrative example, of course, you’ll need to adjust the string depending on what is stored in EnableTCPChimney.
In case anyone is following this issue: this bug (#32386) in the Registry Wizard has been fixed. Your console should pick up the fix automatically from the content feed.