Example: Package files

When you deploy actions, the Tanium Server distributes packages that run commands on the target endpoints. Some package commands depend on files that are distributed with the package, while other commands depend on utilities and resources that were previously installed in known locations on the endpoints. For example, the Tanium Client uninstall utility resides in the top-level installation folder on Windows (such as C:\Program Files (x86)\Tanium\Tanium Client). You can easily develop a package that invokes the uninstall utility.

Figure  1:  Package that invokes the uninstall application
The syntax that you enter in the Command field must include all the appropriate command-line switches to ensure silent execution. For example, setup.exe /S, msiexec.exe /i installme.msi /qn, installme.exe /S /D=DIR, and ipconfig /flushdns.

On macOS, the Tanium Client distribution does not include an uninstall utility. You can create a shell script to uninstall the Tanium Client and use a package to deploy it.

Figure  2:  Package that distributes and runs an uninstall script

In these example actions, the Tanium Client is uninstalled. If an action to uninstall the Tanium Client succeeds, the endpoint does not send a final success message for the action. Because the Tanium Client is removed, the endpoint has no way to communicate with the Tanium Server.