Skip to main content
Solved

How to use an extension attribute as criteria for a smart computer group?

  • September 17, 2026
  • 4 replies
  • 36 views

Forum|alt.badge.img+4

I'm creating an extension attribute, which I want to use as a criterion for a smart computer group. I want the group to contain only those for whom the extension attribute has a particular value.

That is, if my criterion is "[name of extension attribute] [is not] [value I'm interested in]", then members of the group will include those that have a different value from the one I'm interested in, which is right, BUT ALSO all computers that don't yet have the extension attribute populated.

For example, suppose my extension attribute is called ApplicationBlahInstalled, and based on the actions of a script, it will populate the extension attribute as either "Not Installed" or some data indicating where and how it's installed. I will therefore have 3 different possible states:

1. ApplicationBlahInstalled is populated, and has the value "Not Installed"

2. ApplicationBlahInstalled is populated, and has some other value

3. ApplicationBlahInstalled is not yet populated

I need to detect machines that are in state 2, but the value is not going to be predictable, so I have to test for (not "Not Installed"). But when my criterion is:

ApplicationBlahInstalled is not "Not Installed"

...My group ends up containing machines in state 1 AND state 3. Which means that every computer that is in the early stages of installing itself will briefly land, incorrectly, in this group.

I've looked everywhere for the ability to have a criterion that amounts to "extension attribute ApplicationBlahInstalled exists", but I can't find any such thing.

Anyone know how to do this?

Thanks,
Lisa.

Best answer by _gsm

Can you refine the criteria to exclude the additional unwanted states from the Smart Group? (“State is not X” and “state is not Y”)?

 

This is for last enrollment but for example.
 

 

4 replies

Forum|alt.badge.img+8
  • Valued Contributor
  • Answer
  • September 17, 2026

Can you refine the criteria to exclude the additional unwanted states from the Smart Group? (“State is not X” and “state is not Y”)?

 

This is for last enrollment but for example.
 

 


_Daley
Forum|alt.badge.img+7
  • Contributor
  • September 17, 2026

You could try and use “Not like” for field two. See if that gets the results you are after. 


Forum|alt.badge.img+4
  • Author
  • Contributor
  • September 17, 2026

Are you saying that it's possible to leave the value field blank? I would not have thought that would be syntactically valid! Never occurred to me to try it. I'll have a go.


Forum|alt.badge.img+4
  • Author
  • Contributor
  • September 17, 2026

Leaving the value field blank worked! Thanks for that!