How to Make Your Next Patch Window Successful
To ensure the highest level of success and compliance on your next patch cycle, it is important to validate the health of your endpoints. This article covers some of the tasks you can perform ahead of the actual patching maintenance window. This article primarily addresses Windows operating systems, but many tasks can still apply to Linux/macOS. The checks and tasks covered in this article take about 10-15 minutes to complete. Investigating and troubleshooting will consume the majority of your time, assuming there are errors or issues.
Perform a general health assessment of Tanium Patch on the endpoints
Sensor: Patch – Coverage Status Details
Example question for Interact:
Get Patch – Coverage Status Details from all machines
You can also pivot to this question from the Patch Overview. There you will see a section titled Health, where you will also see a graphic for Patch Coverage. To pivot into Interact, you can either click on the title in blue or select a displayed count for a specific Patch Coverage status.
The graphic shows cached data/data from offline endpoints as well as online endpoints. When you pivot to Interact (click the hyperlink), it starts by showing you only online endpoints. For this reason, the [total] numbers might not match the numbers that you seeing in the graphic.
You can use this sensor or question to get a high-level overview of the health of the Tanium Patch process in your environment. This return a variety of statuses, such as: Optimal and Needs Attention. See the screenshot below for an example of what the results might look like.
-
If an endpoint returns Optimal, then the endpoint is ready for the next patch window and there is nothing further to do here.
-
If an endpoint returns Needs Attention, there will be additional details on what the issue might be in the column to the right of the status, called Detail.
-
If an endpoint returns Initializing (not pictured below), then the endpoint may be missing a dependency, the patch tools, or it has not been able to complete the first scan successfully. Drill-down using the sensor Endpoint Configuration – Tools Status Details for more information and to confirm if the Patch tooling or any of its dependencies are missing.
Following is an example of question results:
There are a few different results you can see in the Detail column. In this example, you see:
-
Has Scan Errors: You can use a drill-down with the question/sensor to get more information on what those errors might be:
Get Patch – Scan Errors from all machines
Scan Errors can be caused by a variety of things. You will want to identify what is causing the issue: For example, there could be an issue with the Tanium Patch tooling or there could be an issue with the Windows Update Agent?
If you see a Windows Update Agent error code, use the package Patch – Reset Windows Update Client to help remediate these issues and get the endpoints back to a healthy state.
If you need help remediating scan errors, see the following community article for a list of common errors and what you can due to resolve them: https://community.tanium.com/s/article/How-to-clear-those-pesky-Patch-scan-errors
-
No Longer Targeted: Review the targeting on your scan configurations to ensure that the endpoints in questions are a part of at least 1 scan configuration targeting. Because targeting can vary from environment to environment, ensure that you have a lower priority scan configuration that acts as a catch-all for anything that may not be included in your more specific targeting groups and configurations.
Other results that are not pictured that you may see in your environment include:
-
Stale Scan Results: The endpoint has not performed a scan in a recent timeframe (>3 days). You can use a drill-down question to ask.
Get Patch – Scan Age from all machines
This will help determine the actual length of time certain endpoints have gone without scanning. In order for endpoints to patch, they must have completed a scan/have scan results that show the necessary patches that you want to install as Not Installed.
-
Missing Scan Results: The endpoint has never performed a successful scan before.
-
Tools Not Installed: The Patch tools are not installed on the endpoint. You will want find out why the tools are missing. Drill-down and use the sensor/question:
Get Endpoint Configuration – Tools Status Details from all machines
This will tell you if there are missing dependencies, what version of Patch should be installed (target version), or if there are other issues installing the tools.
Validate if the Patch process is running
Sensor: Patch – Is Process Running Example question for Interact:
Get Patch – Is Process Running from all machines
The Tanium Patch process must be running on the endpoint for endpoints to scan and patch. This check can be done across your entire environment using the sensor and question above. You can pivot to this Interact question from the Patch homepage using the Running Patch visualization.
In Patch version 3.7.126 and later, the mechanism for starting the patch process on Windows changes from the normal scheduled action (Patch – Start Patch Process - [Windows]) to a CX-controlled start function (this is an automatic start function on each endpoint and is no longer controlled by a scheduled action or package).
This means the patch process is much quicker to start after a reboot, power-on, or in any scenario where the patch process may not already be running. If the Patch process is never running or starts and then immediately stops, the Patch log (<Tanium Client>\Patch\patch0.log) may have more information as to what is happening. You can get further help investigating this issue by contacting your TAM or Tanium Support (support@tanium.com).
For Linux and MacOS (even in the 3.7.126 later releases), the Patch process is still started by a scheduled action that runs every 20 minutes.
If the Patch process is not running on Linux or MacOS endpoints, you can deploy the package Patch – Start Patch Process - [Non-Windows] to start the process. When validating the result of the action using the Patch – Is Process Running sensor, ensure that you use a ?maxAge=60 on the sensor to ensure you have the latest result (see Interact bar in the screenshot above). The packages to start the Patch process are:
-
Patch – Start Patch Process [Non-Windows]
-
Patch – Start Patch Process [Windows] (not applicable on Patch version 3.7.126 and later
Resolving Unknown Errors
Occasionally, you will see errors that you are not sure how to interpret or not sure how to resolve. For example, anti-virus software can interfere by locking files which break the Patch tooling. Sometimes files get corrupted. Troubleshooting every individual error usually may not be worth investing a lot of time. You can these two packages to resolve most issues.
Patch – Reset Windows Update Client
If you see a Windows Update Agent error (e.g. 0x0000041D), use the package Patch – Reset Windows Update Client. This helps remediate both scan errors and deployment/install errors that are caused by a broken Windows Update agent.
Endpoint Configuration – Uninstall Tool [Windows]
If you see Tanium-specific errors, you can reset/re-install the Patch tools (not the entire Tanium Client) to try and remediate the issue. This is a common fix that we recommend. Use this fix to get the endpoint back to a fully functioning state (from a Patch perspective) and eliminate broken tooling as the issue. If the issues still exists after performing this step, it is probably a configuration issue, an issue on endpoint itself, or the Windows Update Agent.
The re-install task can be completed in less than 60 seconds from the Tanium Console.
-
Use the package Endpoint Configuration – Uninstall Tool [Windows].
-
Select Patch from the drop-down menu.
-
Uncheck both Block reinstallation and Soft uninstall.
-
Check Remove unreferenced dependencies.
See the example below for an exact image of what to configure. When using this package, target only selected groups of endpoints – do not send this out to your entire environment. You do not need to manually install/re-install the tooling – that is handled automatically after tools are removed. It should take the endpoint only a few seconds to re-initiate the installation after removing the tools.
Additional/Optional Checks
Check and validate that the Tanium Scan for Windows (TSW) sync scans or CAB downloads have completed. You should see a timestamp/sync time after the last Patch Tuesday date to ensure your endpoints will see the latest available patches.
-
For Offline CAB, you can see the timestamp by going to the Patch Overview and locate the Scan Source Details section.
-
For TSW, you can see the sync time by going to Patch > Scan Management > Tanium Scan for Windows.
The timestamps for both should be on or after the last Patch Tuesday date.
Another common issue that can break or prevent patching is low disk space. If there is not enough space on disk to receive the patch and install it, the endpoint will return an error. You can access this from this information from the Tanium Console. Out of the box there are multiple different disk-related sensors that you can take advantage of. For Windows, System Disk Free Space is easiest one to use since you do not need to consider Linux partitions.
You can check the entire environment using the following question and drill-down into the low space machines using Computer Name or another sensor:
Get System Disk Free Space from all machines
Alternatively, you can generate a computer-by-computer basis report using:
Get Computer Name and System Disk Free Space from all machines
There are a lot of different versions of Windows 10. Many of them are end of life, which means Microsoft is no longer releasing patches for them. Please spend a few moments to ensure you are not running any EOL versions of Windows 10; otherwise, these endpoints will not be able to receive the latest security patches. You can use the Windows OS Release ID sensor to identify endpoints that may be on end of life versions. Microsoft publishes the lifecycle and what is and is not EOL on the following pages:
If you find endpoints on EOL versions, you can use Tanium Deploy to upgrade them to a supported version. See Use case: Upgrading WindowsNo Content found for /db/organizations/tanium/repositories/master/content/documents/userguides/deploy/use_case_managing_windows_upgrades.dita.
If you are running Windows 7 or Windows 2008 R2 boxes, ensure that they have their ESU (Extended Security Update) license activated so that they are eligible to receive and install new patches. See Enabling and Delivering Microsoft Extended Security Updates with Tanium.
Article Summary
-
Start with Patch – Coverage Status Details to identify any general issues with Patch tooling throughout the environment. Depending on the results, you may find a subset of endpoints worth investigating. Additionally, use Patch – Scan Errors, Patch – Scan Age, and Patch – Is Process Running to identify any endpoints that might be having scan issues or general issues caused by the Patch process not running on an endpoint. If the Patch process is not running, you can try to manually start it using the package Patch – Start Patch Process [Windows|Non-Windows]. Endpoint Configuration – Tools Status Details can help find any endpoints missing the Patch tooling or key dependencies. Use System Free Disk Space to identify low disk machines and get them remediated before the patch window to prevent unnecessary install failures.
-
There are 2 main packages that you can use for remediating almost every error you see in Patch. Use Patch – Reset Windows Update Client for any endpoints returning a Windows Update Error code. Use Endpoint Configuration – Uninstall Tool [Windows|Non-Windows] for endpoints where you want to quick-fix and get back to a healthy state.
Sensors that were mentioned in this article
-
Patch – Coverage Status Details: Identify health of Patch across the environment at a high level
-
Patch – Scan Errors: Identify scan errors
-
Patch – Scan Age: Identify endpoints not scanning regularly
-
Patch – Is Process Running: Identify if the patch process is not running on endpoints
-
Endpoint Configuration – Tools Status Details: Identify missing patch tooling or dependencies
-
System Free Disk Space: Assess low disk endpoints and increase the space/address them before the patching window
-
Windows OS Release ID: Identify the version of Windows 10 so you can determine if it needs to be upgraded to a supported version
Packages that were mentioned in this article
-
Patch – Start Patch Process [Windows|Non-Windows]:
-
Start the patch process on an endpoint
-
Package does not apply/exist for Patch versions 3.7.126 and above
-
-
Patch – Reset Windows Update Client: Reset the WUA and the software distribution database on the endpoint
-
Endpoint Configuration – Uninstall Tool [Windows|Non-Windows]: Re-install the patch tooling on endpoints as a quick and dirty fix for a variety of issues