# Schedule a Custom Script to Run on Every Reboot

Custom Scripts can be scheduled to run upon specified conditions, for example a script can be scheduled to run after every reboot.&#x20;

<figure><img src="/files/7TiDd8nRl4mKS5z91ojE" alt=""><figcaption></figcaption></figure>

1\. Select the **Control Grid** tab on the top menu bar.

2\. Navigate to the **Applications** tab.

3\. Select a **Script** to Run.&#x20;

4\. Click the **RUN** button.

5\. Click the **OPTIONS** button.

![](/files/GtAnYORYRzjLRicNEVES)

6\. Enter a **Schedule Name**.

![](/files/W29cbEFn0zzZidRukoNf)

7\. Click the **Conditions** option.

{% hint style="info" %}
No Schedule is needed here as the script is being run based on the reboot condition.
{% endhint %}

8\. Select **+ Add Condition**.

9\. Select the **On every reboot** option from the drop-down list.

![](/files/GWAJapiPqRvBTlXZEWHC)

10\. Enter the number of seconds to Execute the script after a reboot.

{% hint style="info" %}
30 seconds is the minimum amount of time that can be configured here.
{% endhint %}

11\. **Optional**: Configure the advanced option - Check the box to allow the user to defer the script.

12\. Click the **SCHEDULE** button.

{% hint style="success" %}
The script has been successfully scheduled to run 30 seconds after every reboot.
{% endhint %}


---

# 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.faronics.com/faronicsdeploy/tasks/schedule-a-custom-script-to-run-on-every-reboot.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.
