Scripting Registry keys on multiple lines
Hi -
I am trying to use a KBOX script to read a registry key on end user machines and compare that to a predefined value. The problem is that the key value is a string that traverses multiple lines and I can't figure out how to specify this as the case. The KBOX reads the data as "value1", "value2", "value3". However, whenever I specify that format as what to look for, it doesn't recognize it (presumably because you can't include quotations in the comparison criteria). I have tried escape characters (\), logical identifiers (AND), etc.
Any ideas?
I am trying to use a KBOX script to read a registry key on end user machines and compare that to a predefined value. The problem is that the key value is a string that traverses multiple lines and I can't figure out how to specify this as the case. The KBOX reads the data as "value1", "value2", "value3". However, whenever I specify that format as what to look for, it doesn't recognize it (presumably because you can't include quotations in the comparison criteria). I have tried escape characters (\), logical identifiers (AND), etc.
Any ideas?
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
GillySpy
14 years ago
Posted by:
wkucardinal
14 years ago
Thank you for your help, however, I did try that and it doesn't appear to be working. Attached are my pictures of the .reg file (the key in question is "Security Packages" at the top. In addition I have attached screens of my script that compares the value, and the result.
You are correct that it is a REG_MULTI_SZ type value.
You are correct that it is a REG_MULTI_SZ type value.
Posted by:
GillySpy
14 years ago
Posted by:
wkucardinal
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.