Avoid installing software on the wrong systems - Tanium Deploy rules for requirements explained

The most important part of any deployment tool is understanding the scope of your endpoints and what constitutes an installed or needs to be installed state.

Having this accurate data is essential to any successful deployment. This article will speak to the importance of creating good system requirement rules to ensure proper applicability, but more importantly, not flag a system as Install Eligible when they actually shouldn’t be. This helps avoid installing software on the wrong systems.

Your diligence and attention to detail will be rewarded!

For the purpose of this exercise, I am going to share the settings of my Google Chrome deployment in these next screenshots, as this is the core of this article.

Why are requirements important?

Requirements (system or otherwise) are what determine deployment applicability to individual systems, so they are extremely important. Make sure to keep the screenshots in mind as we go through the article.

Software Applicability


DeployAvoidInstallin_4d7cf78e-4dd0-4713-ab92-4c45b12a1927.png

When being evaluated for whether a given deployment should apply to them, clients will return 1 of 5 applicability states, evaluated in the below order:

  1. (Installed) - Meets Install Verification criteria

  2. (Update Eligible) - Meets System Requirements and Update Detection criteria

  3. (Update Ineligible) - Does not meet one or more System Requirements or Installed Software requirements, but meets Update Detection criteria

  4. (Install Eligible) - Both System Requirements and Required Software are met, but Update Detection is not met.

  5. (N/A) - Does not meet one or more System Requirements or installed Software requirements, as well as fails Update Detection criteria.

Note that as of 1.1.2, N/A is not calculated in the percentages of applicability status on the Deploy Workbench.

System Requirements


DeployAvoidInstallin_bd4ff458-9cf9-4e0d-abe2-2d5c15ea7be5.png

These elements make up the basic criteria, that determine eligibility of a system to receive the package being deployed:

  • Operating system: This is a list of Operating Systems that the package is allowed to run on. Since no Operating Systems were selected, this package is available to all operating systems. You can also define your own Operating Systems (such as branch of Windows 10) in the Operating Systems node of Workbench Settings.

  • Disk Space Required: If the vendor has a required amount of disk space, it would be wise to triple this number and put it into requirements. This allows for things building the package from the file shards and also running the installation itself. If the package is small and requires a trivial amount of disk space, you can leave the default of 0 and the check will be skipped.

  • Minimum RAM: This is how much memory you want the system to have before making the package eligible to install. Note that on a VM or some types of installations, Windows may take out 2MB of RAM, so 2048MB does not equal 2GB. You may need to reduce that  requirement by about 2MB to detect properly. Leaving this setting at the default 0 will skip the check.

Requirements


DeployAvoidInstallin_a1073040-a8ff-4b03-b31a-5e72109130c3.png

This is where you can define additional requirements for eligibility. The following methods can be used to set requirements, determine install or update eligibility, or the install state itself:

  • Installed Application Name: Search to see if a certain app is installed by name.

  • Installed Application Version: Search to see if a certain app is installed by name and version.

  • Registry Path: True/False if a registry path exists.

  • Registry Data: True/False if a registry path exists and the value of the registry key meets a criteria.

  • File Path: True/False if a file path exists.

  • File Version: True/False if a file path exists and the version meets a criteria.

  • Service Name: Checks the existence and/or running state of a Windows service.

  • WMI Query: Perform a WMI query to see whether or not a value is returned.

Some useful examples:

  • Google Chrome may install on a Windows Server, but not Server Core. If there is no requirement to check for the Server Core flag in the registry, Server Cores will register as “Install Eligible” when they really aren’t

  • Using a WMI query, we can determine if a specific patch is installed, whether the system is using a certain type of hardware, and many other specific options to define eligibility criteria.