> For the complete documentation index, see [llms.txt](https://help.security.gallagher.com/knowledge-hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.security.gallagher.com/knowledge-hub/command-centre-client/configuring-command-centre/administration/macros/scheduling-a-macro.md).

# Scheduling a Macro

### Introduction

To be able to schedule macros requires the "Schedule & Run Macros" operator privilege (a separate privilege from running a macro), because the ability to schedule macros means an operator could potentially unlock secure areas after hours, allowing unauthorised people access.

This procedure details how to schedule the date and time for a macro to run.

### Procedure

1. Click on the Macro you want to schedule from the list in the Viewer Navigation Panel.

   The properties for that Macro populate the Viewer Panel.
2. Click the **Run-time Options** tab.

   This tab allows run times and repetition properties to be defined for the macro.

   **Note:** There is no limit to the number of times a macro can be scheduled to run.

   Do you want the macro to be run at multiple explicit times or repeat times?

   | If the macro is to be run at... | then...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
   | ------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | multiple explicit times,        | <ol><li>Click the <strong>Run at</strong> radio button.</li><li>Enter a date and time, and click the <strong>Add</strong> button.<br>The date and time appears in the <strong>Next Scheduled Run Times</strong> grid.</li><li>Repeat Steps a - b for each explicit time you require.<br><br><strong>Note:</strong> If you click the <strong>Repeats</strong> radio button, then the explicit additions are removed from the <strong>Next Scheduled Run Times</strong> grid.</li></ol>                                                                                                                                                                                                                                                                                                                                                                         |
   | repeat times,                   | <ol><li>Click the <strong>Repeats</strong> radio button.</li><li>Select the 'initial' <strong>From</strong> date and time.</li><li>Select an <strong>Until</strong> date and time if required.<br><br><strong>Note:</strong> If no <strong>Until</strong> date is entered, the macro will repeat indefinitely.</li><li>Select the regularity for the macro to be run, (i.e. <strong>Every</strong> one or many <strong>minutes</strong>, <strong>hours</strong>, <strong>days</strong>, <strong>weeks</strong> or <strong>months</strong>).<br><br><strong>Note:</strong> When <strong>weeks</strong> is selected from the drop-down list, the days of the week display with an ability to select one or multiple days, (e.g. Monday and Thursday).<br>The next seven dates and times appear in the <strong>Next Scheduled Run Times</strong> grid.</li></ol> |
3. Click the **Save** button.

   A macro has been scheduled. The Viewer Navigation Panel displays the next scheduled run time and the number of future run times for this macro.

   **Note:** Once a scheduled run time is reached and the macro is run, the entry is removed from the list on the **Run-time Options** tab.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.security.gallagher.com/knowledge-hub/command-centre-client/configuring-command-centre/administration/macros/scheduling-a-macro.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
