Skip to main content
Solved

Smart Group criteria for finding Computer Names with an apostrophe...


MacMaul
Forum|alt.badge.img+6

I would like to single out Macs named like "Whoever's iMac" but can't seem to create criteria that catches Computer Names with an apostrophe in them. Computer Name matching regex ['] or using Computer Name is like ' only returns one machine for whatever odd reason.

Best answer by ryan_ball

@PhilMaul Take a look at the Computer Name section of a computer in question. It uses a different type of apostrophe, which is probably why it is not working for you.

# This is what you were looking for: '

# This is what that field usually uses: ’

# So the criteria would be Computer Name Matches regex
.*["’].*
View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+18
  • Contributor
  • 475 replies
  • March 12, 2019

Try this:

# Criteria is Computer Name Matches Regex:
.*["'].*

MacMaul
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 20 replies
  • March 12, 2019

@ryan.ball No difference, just the same single machine was found.


Forum|alt.badge.img+18
  • Contributor
  • 475 replies
  • Answer
  • March 12, 2019

@PhilMaul Take a look at the Computer Name section of a computer in question. It uses a different type of apostrophe, which is probably why it is not working for you.

# This is what you were looking for: '

# This is what that field usually uses: ’

# So the criteria would be Computer Name Matches regex
.*["’].*

MacMaul
Forum|alt.badge.img+6
  • Author
  • Contributor
  • 20 replies
  • March 13, 2019

@ryan.ball Yep, that worked! Thank you.


Forum|alt.badge.img+2
  • New Contributor
  • 4 replies
  • January 29, 2020

Used this solution for finding computers that have names ending with (


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings