# How to Schedule a Script in Endpoint Central **Last Updated On**: 24 Jun 2026 | **4 minutes read** In certain scenarios, you may need to run scripts on a regular basis to achieve tasks like file cleanup, system maintenance, or other recurring actions. Endpoint Central provides an efficient way to automate these tasks using the File Folder and Scheduler configurations. This guide will walk you through the steps to set up and configure scheduled scripts, ensuring that your tasks are executed periodically and consistently across your devices. ## What is Scheduling a Script Scheduling a script involves automating the execution of a script at a predefined date and time. In Endpoint Central, scheduling a script is achieved using a Collection, which consists of two key configurations: - **File/Folder Configuration:** Deploys the script file to a designated location on target machines. - **Scheduler Configuration:** Registers the script in Windows Task Scheduler on target machines, ensuring it executes at the specified time. ## How to Configure File Folder and Scheduler Configuration as Collection to Schedule a Script 1. In the Endpoint Central console, navigate to **_Configurations > Collection > Computer Collection_** ![Schedule Script File Folder](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/schedule-script-filefolder.webp) 2. Add **_File Folder_** Configuration ![Schedule Script Scheduler](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/schedule-script-scheduler.webp) 3. Add **_Scheduler_** Configuration 4. Click **_Save & Continue_** ![Schedule Script File Folder](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/schedule-script-filefolder-file.webp) 5. In the File Folder configuration: 1. **Select Action** as **Copy** 2. **Select Type** as **Copy using HTTP** 3. **Select Action Type** as **Files** 4. Upload the script file 5. Specify the destination location to copy the file 6. Click **Save & Continue** ![Schedule Script Scheulder](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/schedule-script-scheduler-file.webp) 6. In the Scheduler configuration: 1. **Select Action** as **Create Task** 2. Specify **Name of the Task** 3. Specify the **Application Name** 4. Specify the **Arguments** Depending on the script execution platform, use the appropriate application name and arguments: For **PowerShell** scripts: Application Name: **powershell.exe** Arguments: **-executionpolicy remotesigned -file "C:\EndpointCentral\cleanup_logfiles.ps1"** For **Batch (.bat)** scripts: Application Name: **cmd.exe /c** Arguments: **"C:\EndpointCentral\cleanup_logfiles.bat"** **Note:** As per the scheduler configuration, Endpoint Central will add only the task to the Windows Task Scheduler. The script execution will be managed by the Windows API. ![Schedule Script File Folder](https://cdn.manageengine.com/sites/meweb/images/desktop-central/help/configurations/schedule-script-scheduler-trigger.webp) 5. Click **Trigger** 6. Specify **Frequency** 7. Specify **Start At** 8. Click **Save & Continue** 7. [Define the targets](https://www.manageengine.com/products/desktop-central/help/general/defining_targets.html) for the deployment. 8. Specify retry options, if required 9. Click **Save & Continue** 10. Click **Deploy** You have successfully Scheduled a Script using Endpoint Central.