Uninstall Software using Tanium Core

One of the most common questions I get from customers is: “How do you use Tanium to uninstall X piece of software”? There are a few different approaches to accomplish this outcome using Tanium, depending on which solutions you own, but for this article I’ll focus on the Tanium Core platform.

The easiest way to illustrate the process is to walk through the steps in uninstalling an application from all systems in an IT environment. While the example application is “sketchup”, this process can be applied to any application in the same way. The process includes an optional section, for those users who want to repeatedly reissue the uninstall command on a cadence.

Find all instances of the application on target systems

First, ask the following question in Interact:

Get Installed Applications from all machines

You’ll get back a list of all installed applications in your environment. Next you’ll want to filter out applications irrelevant to your goal, and list only the ones you are looking for. In this example we will set a contains filter looking for "sketchup".


UninstallSoftwa_cdfacfca-b686-472f-9e56-fdcce8a14f79.png

Tanium will now display all installed applications that contain the word "sketchup", along with how many machines each is installed on.

Prepare an uninstall package

On the list of filtered installed applications, select all rows (assuming all of them show the “sketchup” application you want to uninstall).


UninstallSoftwa_ae991ce5-6efa-4f18-855e-b5f598e9967d.png

Click the "Deploy Action" button at the top of the results grid.

In the "Deployment Package" section, type "Uninstall MSI".


UninstallSoftwa_4fe83dfb-af28-4dd5-afe0-309b3e841b1c.png

(Optional) Set up a recurring deployment

Set an "End at" date and a "Reissue every" cadence.


UninstallSoftwa_fff76525-8b31-4ca6-a8f6-792209380322.png

The above example will tell Tanium that for the next two weeks, every 4 hours, Tanium is to look for any endpoints with this software and uninstall it. This helps to ensure the action is issued to endpoints that may be offline at the moment.

Target and deploy the uninstall package

Before deploying, you’ll need to specify which computers you want the uninstall to target. Do this by setting the Action Group; in this example, we are targeting All Computers. Once you have done so, click “Show Preview to Continue” to verify the target computers and action, and then “Deploy Action” when ready to proceed.

After you authenticate, you can watch progress of the action:


UninstallSoftwa_0e2da8a2-7326-48e6-b424-08f57a81d1f4.png

There will be an "Action Summary" for each version of the software you selected. Scroll down to see the other actions and their progress.

Verify completion of the action

Once all the actions are complete we can ask Tanium to get a fresh list of Installed Applications by asking the following question:

Get Installed Applications?maxAge=60 from all machines

Note:

This question is formatted to tell Tanium to override the sensor cache.

Filter as you did before, and all instances containing "sketchup" should be gone.

In this example workflow, we have found all instances of the application “sketchup” across the entire IT estate, and uninstalled them (either as a single action or recurring action).