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".
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).
Click the "Deploy Action" button at the top of the results grid.
In the "Deployment Package" section, type "Uninstall MSI".
(Optional) Set up a recurring deployment
Set an "End at" date and a "Reissue every" cadence.
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:
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
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).