Help with relevance HKLM

Not sure why this evaluates to False. Can someone tell me the error?
exists key whose (value “ListOfDDCs” of it as string contains “gny-citrixcc-1.gny.local”) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent” of native registry

My Registry:
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent]
“ListOfDDCs”=“gny-citrixcc-1.gny.local”

Yes, that’s looking for a key beneath ‘VirtualDesktopAgent’ rather than the ‘VirtualDesktopAgent’ key itself.
Try

exists keys "HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\VirtualDesktopAgent" whose (value "ListOfDDCs" of it as string contains "gny-citrixcc-1.gny.local") of native registry

That fixed it!

Thank you!

1 Like