Step 1: Open Start > Administrative Tools
Step 2: Right click on Task Scheduler and click Run as Administrator
Step 3: Click Create Task
![](https://www.samsure.sh/wp-content/uploads/2023/02/windows-server-2019-task-scheduler-0.png)
Step 4: Give the task a name, Choose Configure for as Windows Server 2019.
![](https://www.samsure.sh/wp-content/uploads/2023/02/windows-server-2019-task-scheduler-1.png)
Step 5: Under trigger add New.
Important to set the task as One time. Due to a bug in Windows Server, repeating Daily tasks will not work.
![](https://www.samsure.sh/wp-content/uploads/2023/02/windows-server-2019-task-scheduler-2.png)
Step 6: For actions, add the app and argument.
Example:
D:\php-7.4.32-Win32-vc15-x64\php-win.exe -f D:\modernlms\root\admin\cli\cron.php
![](https://www.samsure.sh/wp-content/uploads/2023/02/windows-server-2019-task-scheduler-3.png)
Step 7: The final tab, set as below
![](https://www.samsure.sh/wp-content/uploads/2023/02/windows-server-2019-task-scheduler-4.png)