If I understood you correctly, you can use
Reg String Value %path% contains ??TARGET.WINDIR??
Hi, thanks for that, but it was a bad example on my part . Is there a way to reference 'any' environment variable's value within a compliance rule ?
Actually, I am not sure your posted response would work anyway as windir is set as /C/WINNT where as the %path% environment variable would contain c:\winnt - it wouldn't match ?
why not just hard-code the possible values for the %WINDIR% in the rule check and use an 'OR' condition? bsa standardizes on unix style paths, so there is not likely to be a windows representation of this path.
As i mentioned, windir was a bad example. My question is can I get the value of 'any' environment variable in to a rule to compare against a 2nd environment variable ? I can add them both as parts, but in the rule itself I can not see a way to compare one against another, you can only compare one against a fixed string or bladelogic property. ie in the xxx contains yyy where xxx is the "String Value (Windows) of part xxx contains String Value(Windows) of part yyy.
ie compare one registory value agsinst another registry value.
you can not use environment variable on right side.And I already mention you can use ??TARGET.WINDIR?? or any other parameters already available.
As Bill mentioned, BSA standardizes on unix style paths so they are nsh paths.
If you want to create common job for different OS, add extended Object and handle all scenarios in script.
And create Rule out of it.
Hope, this will solve your problem.
i believe you can do this in the 8.x rule editor. what version of bsa are you using ?
How are things progressing with this?
Please can you post your solution information for the benefit of the user community
Thanks & Regards,
Jim (Forum Admin)