Variable Host Name in Filtering Data
Updated: 16 Jun 2010 | 2 comments
I am performing a check on accounts given certain rights. Is there a way to use a variable in my check?
The returned data is: HOSTNAME\administrator and I want to make sure that HOSTNAME\administrator is there. However, in my rule I can't use HOSTNAME\administrator as this rules is used for many different systems. I've tried things like BUILTIN\administrators, but that didn't seem to work.
Any thoughts?
discussion Filed Under:
Comments
variable host name in filtering data
You can't use a variable but you can use the =~ (regex) to require <something>\administrator. CCS uses the .NET RegEx engine which is very similar to Perl 5 so there are lots of examples of the types of regex that you can use to get close to your goal.
thats a great tip, thanks
thats a great tip, thanks Kevin!
Would you like to reply?
Login or Register to post your comment.