# Batch File

Batch File tasks are scheduled for executing batch files on the computer. A Batch File task has a Start Time and an End Time. During this period, the batch file is executed on the computer. You must configure additional settings in the Batch File tab for the Batch File Task to work. You can configure to shutdown the computer after the Batch File Task is completed. Computers will reboot Frozen after the batch file has been executed.

The Batch File task can be scheduled by completing the following steps:

1. Select _Batch File_ from the _Task Type_ drop-down and click _Add_.
2. The following options are displayed:
   * Name – Specify a name for the task.
   * Day – Select the day, or specify if the task will occur on Weekdays or Weekends.
   * Start – Select the Start Time.
   * End – Select the End Time. The minimum interval is 15 minutes.
   * Allow user to cancel the task – Select the checkbox if the user is allowed to cancel the task before it starts.
   *   Attempt to wake up locally – Select this option to wake up the computer locally without requiring any communication from the Deep Freeze Cloud Console.\


       Note that certain hardware profiles do not support this option. If this option is selected, but the computer hardware does not support it, the computer will not wake up automatically.
   * Shut down after task – Select the checkbox to shutdown the computer after the task.
   * Disable keyboard and mouse – Select the checkbox to disable keyboard and mouse during the task.
   * Show message – Select the checkbox to display a message on the computer _Before_ and _During_ the task. Specify the time interval in minutes and enter a brief message to be displayed before the task starts.
3. Click _OK_.
4. Go to [Batch File Tab](../batch-file-tab) to configure additional settings.

{% hint style="info" %}
The message _This computer will reboot in %d for Batch File_ is displayed in the _Message to be displayed before the task_ field. This message can be edited. Add the word _minutes_ in the message after %d to include the word minutes as part of the message.
{% endhint %}

