Use Tanium Deploy Maintenance Windows to Specify When Software Can Be Installed

Maintenance Windows are defined as the period of time software is allowed to be installed on a system or for a user. This article explains how to create and apply them effectively. Without a maintenance window in place, software cannot be installed on an endpoint unless the "Override Maintenance Windows" option is selected at deployment.

First, some important things to note about maintenance windows:

Maintenance windows concatenate, meaning that if you deploy 3 maintenance windows to a system, they will all apply. 

  • For example:

Window from 1am-4am and 2am-5am will create a 1am-5am window.Window from 1am-3am and 4am-5am will create 2 windows at those respective times, with a break between 3am-4am.

Any deployment started before the end of the maintenance window will fire. This means if you have a maintenance window end at 3 am, and a deployment kicks at 2:55am:

  • The file downloads are not calculated into the Maintenance Window as is the command timeout.

    • For best results: Download immediately will have the client pre-cache the package files until start time.

  • The deployment will start, and it will run to completion or command timeout.

  • End User Notifications (if configured in the deployment) will trigger and wait for the user past the maintenance window end time.

If you are not concerned with the time a deployment fires on an endpoint, a 24x7 window creation is encouraged. Or, if you want to initiate a global blackout, remove the maintenance window. It is a bad practice to gratuitously use "Override Maintenance Windows" as it makes a blackout period harder to attain.

Maintenance Windows have a default Time to Live (TTL) of 4 hours. This is controlled by the setting "Maintenance Window Max Age".

Where to Find Maintenance Windows in Tanium Deploy

Maintenance Windows are stored in a package called "Deploy - Maintenance Window xxx", where xxx is the Maintenance Window ID, created by the user who added the enforcement.

Scheduled action called "Deploy - Distribute Maintenance Window xxx" (xxx is the Maintenance Window ID) is set to fire off every hour, created by the user who added the enforcement:


UseTanDepMainte_ec5c1681-98ec-45ca-892c-cadcd7f1c06c.png

The package is not created until the first computer group is added to a maintenance window.

If a computer group is removed from a maintenance window, an additional package is created, "Deploy - Unenforce Maintenance Window xxx Group yyy" by the user who removed the enforcement:


UseTanDepMainte_0a2b341c-ff93-4539-99e7-aebb7ff8b139.png

xxx Represents the maintenance window IDyyy Represents the Group ID that was removed from the maintenance window enforcement

Maintenance Window Deployments

Sometimes you may deploy software and realize that the system is waiting for a maintenance window to execute. Instead of stopping an existing deployment and then choosing to "Override Maintenance Windows" in a new deployment, this is the process of creating a Maintenance Window and how it applies.

New in Deploy 2.0 and later, we store everything in the client database and no longer keep JSON files on the endpoint.

When a Computer Group is added to a Maintenance Window enforcement, the action is immediately sent to the endpoint. The action will insert the maintenance window into the software-management.db file. This window only copies to endpoints in the Computer Groups that were targeted. The database read in by TPython's long running process which then immediately commits the window to memory.

This also allows current deployments which are in the "Waiting" state to trigger, assuming the maintenance window frees them for this period.

When a Computer Group is removed from Maintenance Window Enforcement, the action will remove the row from the software-management.db file. This file is only removed from endpoints in the Computer Groups that were targeted. TPython then engages and immediately commits maintenance window changes to memory.

How to Create a Maintenance Window

From the Side Menu of the Deploy workbench, click on Maintenance Windows:


User-added image

Click Create Window at the upper right side of the screen:


UseTanDepMainte_ea76d928-8d93-4a4d-bfb9-cc288499219e.png

Fill out these fields:

  • Name: Give the Maintenance Window a unique name

  • Window Time: Whether you want the maintenance window to execute at the local issuer’s browser time (meaning the same time), or at the local time on the endpoint (which means that the execution would be in the local time zone to the endpoint).

  • Repeats: Pick the interval you wish to repeat the window on, some examples:

    • Daily: Just a repeating window of time every day

    • Weekly: Have a window of time, but only on certain days

    • Monthly: Only execute on the a certain day of the month by date, or say every 3rd Monday.

You can choose to end a maintenance window at some point in the future by selecting Use Calendar to Select Duration and then inputting your end date and time:


UseTanDepMainte_37000401-be8d-4e25-b60a-c323c8dbbca9.png
One everything is filled out, you will also see a summary and the first 5 instances of when the maintenance window will be run:
UseTanDepMainte_9992a171-48ae-4c22-85c0-a9cb1f735a5f.png

Click Create and the maintenance window is created. You will then need to deploy it to make it active.

To Deploy the Maintenance Window

Under Maintenance Window, you will see your new maintenance window under “No Targeted Groups”. Select the window, and then scroll to the bottom and select Add Computer Group. Select the group you would like to add from the drop down. The drop-down will disappear, and then you can click Add to enable the maintenance window enforcement to this group.