> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/war-room-overview/schedule-a-command.md).

# Schedule a Command

Schedule commands in the Cortex XSOAR 6.14 War Room.

You can run a scheduled command once or on a recurring schedule, setting the start time, end time, and frequency. Some common use cases for scheduling a command:

* Mirroring a ticket from an external ticketing system.
* Sending an email to a user, waiting a determined amount of time, and then sending the email again if a response has not been received.

{% hint style="info" %}

### Note

Scheduled commands run using the server's time zone.
{% endhint %}

1. Open an incident, locate the command entry in the War Room, and click the clock icon.

   The clock icon is blue when the command is not scheduled, and orange when it is scheduled.

   ![schedule\_command\_clock.png](https://3548014557-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOHlpKeFtqCLUYKuYyccd%2Fuploads%2Fgit-blob-7d2868d34b80ca94d01df8c147d917d264b7db0a%2F769e9fddd3c3ac231bf87decd90150fe186bba3a608fa678d82ea31de9571fb3.png?alt=media)
2. By default, scheduling options are displayed in human readable view. For recurring commands, you can use the human readable view or switch to the Cron view.

   To schedule a command using the human readable view:

   * For a non-recurring command, set the date and time for the command to run.
   * For a recurring command:
     * Select **Recurring**.
     * Set the frequency.
     * Set a start date and time.
     * (Optional) Set an end date and time.

   To schedule a recurring command using the Cron view:

   * After you select **Recurring**, click **Switch to Cron view**.
   * Define the Cron expression.

     Expand **Show cron examples** to view sample schedules in Cron format.
   * Set a start date and time.
   * (Optional) Set an end date and time.

To remove a scheduled command, click on the clock icon and then **Remove schedule**.

You can also schedule commands to run in the War Room by using the [ScheduleCommand](https://xsoar.pan.dev/docs/reference/scripts/schedule-command) script.


---

# 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://cortex-docs.paloaltonetworks.com/xsoar-6-administrator-guide/6.14/customize-cortex-xsoar/customize-and-configure-cortex-xsoar/incidents/war-room-overview/schedule-a-command.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.
