Recently I grabbed a script someone in the Mac Admin community created to check the configured remote management accounts on machines. We only have one account that we setup specifically to have remote management access. That script is our EA for which the output is set to string.
I have a smart group which is set to add computers to this group if 1) there are no remote management accounts configured and 2) if the reported remote management account is not our configured account.
All this is working fine except that our language lab computers have special software which add an additional remote management account to do what the software needs to do. Because of this, I need to add additional criteria so these machines don't unnecessarily populate my smart group.
If I add an additional criteria such that the output is not like this additional account, this removes the lab computers from the smart group. But if I'm thinking about this right, even if I add an additional remote management account to one of those machines and update inventory, it won't trigger the smart group because of the "not like" criteria. I've also tried is not our configured remote account OR is not, but this just adds all our machines to the group.
My question is if I want to make an exception for this additional remote management account how can I best accomplish this? I'm thinking the issue is more because I have 1 EA collecting potentially multiple pieces of information ....
Is there a way just in collecting all remote management accounts in one EA, or would I have to make multiple EAs for each account that may have remote management rights ... ?
Thanks in advance!