> For the complete documentation index, see [llms.txt](https://docs.faronics.com/faronicsdeploy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.faronics.com/faronicsdeploy/tasks/schedule-a-custom-script-to-run-on-every-reboot.md).

# 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="https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MRkQfx_2cLnNNBX1muO%2Fuploads%2F7qxKWI8Y1BJRRgDUQmVM%2Fimage.png?alt=media&amp;token=bfc8af08-d27f-437f-ac80-20ebe3b8d6e0" 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.

![](https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MRkQfx_2cLnNNBX1muO%2Fuploads%2F97KFEeP2D1oO1WpB8RJv%2Fimage.png?alt=media\&token=4efc1a18-6043-44c1-bda7-aac76b9c05fd)

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

![](https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MRkQfx_2cLnNNBX1muO%2Fuploads%2FHD4s8iyOfv0f6PFDRLOw%2Fimage.png?alt=media\&token=9c70db91-c3fe-4a42-a3db-a6f1e1118171)

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.

![](https://3007061244-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MRkQfx_2cLnNNBX1muO%2Fuploads%2FVo189f0vdbyQoabnomf9%2Fimage.png?alt=media\&token=7a6379ad-c1a8-4ce9-a79f-70a900fea090)

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 %}
