Creating or Removing Scheduled Tasks (cron) in Plesk (windows)

Some scripts/applications require certain scripts be run at a certain time to function properly.

On Windows servers, we can set them up to run at certain times by creating a scheduled task (which is similar to how you can run cron jobs on Linux servers).

Creating a Scheduled Task in Plesk:

We can set up Scheduled Tasks in Plesk by doing the following:

  • Log into Plesk

The user you are logging in with should have enough permissions to create a scheduled task. Windows Shared customers automatically have permission, and the Admin user for Windows Dedicated Servers automatically have permission. Additional users created by the Admin on a Windows Dedicated Server may or may not have permission to set up scheduled tasks, depending on what permissions you give them.

  • Click on the Websites & Domains tab.
  • Click on Show Advanced Operations (a small grey link in the middle of the page), if the advanced options are not already shown.
  • Click on Scheduled Tasks.
  • Select the appropriate system user.
  • Click on Schedule New Task.
  • Fill out the form as follows:

>>Switched On: Check the box to turn on the scheduled task.

>>Description: A short description to remind you what this scheduled task does.

>>Scheduler Notification: If you want an email every time this runs, select the appropriate option, otherwise select Do Not Send. You may provide an email address where you want the notifications sent to.

>>Path to the executable file: Specify the path to the file you wish to execute. For Windows servers, it would be something like this for PHP
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php-cgi.exe
For perl :
C:\Program Files (x86)\Parallels\Plesk\Additional\Perl\bin\perl.exe”
For ASP or .NET page :
C:\Windows\system32\cscript.exe

>>Arguments:C:\Inetpub\vhosts\mydomain.tld\httpdocs\myscript.php
Replace mydomain.tld with your domain name, and myscript.php with the appropriate subfolder(s) (if any) and filename.

>>Task Priority: Select Low, Normal or High.

>>Specify when to run your command by selecting the appropriate checkboxes in the Hours, Days of month, Months or Days of week fields.

>>Click OK to schedule the task or click Run Now to schedule the task and immediately run it.

You will be taken back to the Scheduled Tasks screen and you should see your new scheduled task listed at the bottom.

If you require help, contact SupportPRO Server Admin

Server not running properly? Get A FREE Server Checkup By Expert Server Admins - $125 Value

Leave a Reply