Reg key combination help

How do I turn this into an EXISTS statement ?

q: ((key “HKEY_LOCAL_MACHINE\SOFTWARE\BeyondTrust\SD\Applications\Rules\Users” of native registry) as string & “” & component string of sid of security account (name of current user))
A: HKEY_LOCAL_MACHINE\SOFTWARE\BeyondTrust\SD\Applications\Rules\Users\S-1-5-21-1893938050-575629652-5522801-843251
T: 1.411 ms

Adding an EXISTS returns “True” which is incorrect …(when checking the reg)
q: (names of it) of keys of keys “HKEY_LOCAL_MACHINE\SOFTWARE\BeyondTrust\SD\Applications\Rules\Users” of native registry
A: S-1-5-21-1893938050-575629652-5522801-591215
A: S-1-5-21-1893938050-575629652-5522801-759786
A: S-1-5-21-1893938050-575629652-5522801-821119

Hi,

Does this work for you:

exists keys whose (it contains component string of sid of security account (name of current user)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\BeyondTrust\SD\Applications\Rules\Users” of native registry

thanks,

Ian

Added it as string, and it worked perfectly. thanks…

exists keys whose (it as string contains component string of sid of security account (name of current user)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\BeyondTrust\SD\Applications\Rules\Users” of native registry