Advanced Computer Searches
- Last UpdatedJul 9, 2024
- 7 minute read
Advanced computer searches allow you to use detailed search criteria to search the managed and unmanaged computers in Jamf Pro. These types of searches give you more control over your search by allowing you to do the following:
Generate specific search results
Specify which attribute fields to display in the search results
Save the search
The following table lists operators and examples of how they might be used to qualify values:
When you select a criteria operator from the pop-up menu, only the operators that are relevant to the previously selected criteria appear. For example, the current operator only appears for the "Jamf Binary Version" criteria.
Operator | Definition | Example |
---|---|---|
is | Matches the specified string exactly | The criteria "'Computer Name' is 'Test Computer 6'" includes computers with the name "Test Computer 6". By contrast, a computer with the name "Test Computer 7" is not included. |
is not | Matches values that do not match the specified string exactly | The criteria "'Display Name' is not 'CEO iPad'" includes all devices except those with the exact display name "CEO iPad". By contrast, a device with the display name "'CEO iPad Old'" is not included. |
like | Matches value that contain the specified string | The criteria "'Computer Name' like 'AP Science Mac'" includes computers with names such as "AP Science Mac 1", "AP Science Mac 2", and "AP Science Mac 3". |
not like | Matches values that do not contain the specified string | The criteria "'Display Name' not like 'Staff'" includes devices with display names such as "Student A", "Student B", and "Smith Personal iPhone". |
has | Matches applications or files that are present on a device | The criteria "'Licensed Software' has 'Microsoft Excel'" includes computers that have Microsoft Excel currently installed. |
does not have | Matches applications or files that are not present on a device | The criteria "'Licensed Software' does not have 'Microsoft Word'" includes computers that do not have Microsoft Word currently installed. |
matches regex | Matches values that match the specified regular expression (regex). For more information on regex, see the Using Regex with Smart Groups and Advanced Searches article. | The criteria "'Computer Name' matches regex '^LAB-.*$s'" includes computers with names such as "LAB-ART-101", "LAB-CS-101", and "LAB-CS-102". |
does not match regex | Matches values that do not match the specified regular expression (regex). For more information on regex, see the Using Regex with Smart Groups and Advanced Searches article. | The criteria "'Display Name' does not match regex '^HS'" includes devices with display names such as "iPad HS loaner" and "11 HS iPad". |
before (yyyy-mm-dd) | Matches events that occurred before a specified date | The criteria "'Last Inventory Update' before (yyyy-mm-dd) '2024-05-01'" includes computers or mobile devices that updated their inventory before 01 May 2024. |
after (yyyy-mm-dd) | Matches events that occurred after a specified date | The criteria "'Last Check-in' after (yyyy-mm-dd) '2024-05-01'" includes computers or mobile devices that checked in with Jamf Pro after 01 May 2024. |
more than x days ago | Matches events that occurred more than a specified number of days ago | The criteria "'Last Enrollment' more than x days ago '30'" includes computers or mobile devices that completed an enrollment more than 30 days ago. |
less than x days ago | Matches events that occurred less than a specified number of days ago | The criteria "'Last Inventory Update' less than x days ago '14'" includes computers or mobile devices that have updated their inventory less than 14 days ago. |
current | Matches values when a value is consistent with what Jamf Pro identifies as the most recent version | The criteria "'JAMF Binary Version' current" with the Value field left blank includes computers that have the current version of the jamf-pro binary installed. |
not current | Matches values when a value is not consistent with what Jamf Pro identifies as the most recent version | The criteria "'JAMF Binary Version' not current" with the Value field left blank includes computers that do not have the current version of the jamf-pro binary installed. |
greater than | Matches operating system versions that are greater than the specified version | The criteria "'Operating System Version' greater than '13'" includes computers that have macOS 13.0.1 or later installed. |
less than | Matches operating system versions that are less than the specified version | The criteria "'Operating System Version' less than '14'" includes computers that have macOS 13.6.7 or earlier installed. |
greater than or equal | Matches operating system versions that are greater than or equal to the specified version | The criteria "'OS Version' greater than or equal '16'" includes mobile devices that have iOS, iPadOS, or tvOS 16.0 or later installed. |
less than or equal | Matches operating system versions that are less than or equal to the specified version | The criteria "'OS Version' less than or equal '17'" includes mobile devices that have iOS, iPadOS, or tvOS 17.0 or earlier installed. |
member of | Matches computer, mobile device, or user values that are members of a specified smart or static group | The criteria "'Computer Group' member of" with the Value field containing the name of an existing smart or static group includes members of the specified smart or static group. |
not member of | Matches computer, mobile device, or user values that are not members of a specified smart or static group | The criteria "'Mobile Device Group' not member of" with the Value field containing the name of an existing smart or static group includes computers, mobile devices, or users that are not a member of the specified smart or static group. |
- and—Only devices that fulfill all related criteria will be included in membership.
- or—Devices that fulfill any of the related criteria will be included in membership.
If more complex logic is necessary to define the relationships between your criteria, you can use the parenthesis pop-ups to group criteria together.
The results of a saved search are updated each time you view the membership.
You can export the data in your search results to different file formats or perform actions on the results. For more information, see Computer Reports or Mass Actions for Computers.
Outlined below are Jamf-recommended advanced computer searches that can be effective in organizing your computers and identifying computers with certain characteristics or behavior.
These recommended advanced search criteria can also be used as smart group criteria, but note that the Managed criteria is only available for advanced searches.
Criteria | Operator | Value | Notes |
---|---|---|---|
Managed | is | Unmanaged | Identifies computers that can still be found in inventory, but are no longer managed by Jamf Pro |
Enrolled via Automated Device Enrollment | is | Yes | Identifies computers enrolled via Automated Device Enrollment, which also indicates that the computers returned from this search are supervised |
Last Check-in | more than x days ago | 14 or less | Identifies computers that have not checked in with Jamf Pro within a given time frame |
Last Inventory Update | more than x days ago | 14 | Identifies computers that have not updated their inventory in 2 weeks |
Operating System Version | greater than or equal to | Current macOS version | Identifies computers that are up to date with the most recent macOS version |
Operating System Version | less than | Current macOS version | Identifies computers that do not have the most recent macOS version installed |
FileVault 2 Partition Encryption State | is not | Encrypted | Identifies all computers that are not encrypted via FileVault |