# Maintenance Windows

Maintenance Windows can include one or more schedules associated with an urgency level (Low, Normal, High, and Critical). Urgency settings are cumulative, meaning that higher urgencies also apply to any schedules created for lower urgencies.

If multiple schedules overlap, they will not restrict one another, however, we recommend keeping your Maintenance Window time settings simple. When a patch is evaluated, OneSite Patch checks the available Maintenance Window schedules in order and runs the patch during the first matching time period.

For instance, you have a maintenance schedule set for 8:00-10 PM with a Low urgency and another from 6:00-10 PM with a High urgency. A low urgency patch is ready to be installed at 7:00 PM, but will wait until 8:00 PM since it falls under the low urgency maintenance window. If a high urgency patch is set to be installed at 7:00 PM, however, this will occur at 7:00 PM since it falls between the 6:00-10:00 PM range of the high urgency maintenance window.

OneSite Patch provides built-in maintenance windows, or you can create custom maintenance windows.

![](/files/za2yww40vlvWFPMMdjSi)

## Create a Maintenance Window

1. Select **Advanced Settings > Maintenance Windows** in the left navigation menu of the Patch Dashboard.
2. Enter a **Name** and **Description**.

### Dynamic Settings

A Dynamic Detection workflow sets the patching Maintenance Window based on the selected workflow rather than a set schedule. For more information, enter a support ticket and request help from [Adaptiva Customer Support](https://adaptiva.com/support).

1. Scroll down to **Dynamic Settings**, in an open Maintenance Window template.
2. Select **Browse** to the right of **Add Workflow** and select a workflow.

### Maintenance Windows by Urgency

You may create multiple Urgencies Maintenance Windows with different start times based on individual urgencies or create a single maintenance window for all urgency types. In larger environments, you may want to define each for a load balancing effect.

1. Toggle **ON** for **Apply to All Urgencies** to enable the All Urgencies options.

   ![](/files/YjelurqCWIIgDy2JXDAI)
2. Select **+ Create Maintenance Window** to begin.
3. Select **Browse** to view and choose a **Start Time Schedule**.
4. Enter the **Duration**
   * These settings override any non-zero duration values set in the Maintenance Window when the Maintenance Window fails to open for urgency level updates.
5. Enter the max number of maintenance windows that can be missed before a forced install is performed in the **Missed Window Limit** field.
6. Click **Create Maintenance Window**.
7. Click either **Save** or **Save & Deploy**.

   ![Save and Deploy buttons](/files/UDqXLv3GYCoCnmBUiMbw)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.adaptiva.com/patch/advanced-settings/maintenance-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
