Previous page | Next page | Locate page |

## Scheduling a Task (Windows Hosting)

To schedule a task for a domain:

1. Go to Domains > domain name > Scheduled Tasks (in the Additional Tools group).
2. Click Schedule New Task.
3. Input a name for your task in the Description field.
4. In Scheduler notification, specify whether the scheduler should notify you when it runs this task. The following options are available:
   - Switched off - do not notify you.
   - Send to the default e-mail - send the notification to your default e-mail address.
   - Send to the e-mail I specify - send the notification to the e-mail specified in the corresponding field. After selecting this option, you need to input the required e-mail in the field on the right.
5. Specify which command to run. Type it into the Path to executable file input box. If you need to run the command with certain options, type them in the Arguments field.
   - For example, if you want to run the statistics calculation task to count disc space and see more detailed information for the example.com and example.net domains, you need to specify the following path in the Path to executable file input box:

     `C:\Program Files\Parallels\Plesk\admin\bin\statistics.exe`

     and the following options in the Arguments field:

     `--disk-usage --process-domains=example.com, example.net `–verbose``

   - If you want to run your own php script using the task scheduler, you need to specify the following path in the Path to executable file input box:

     `C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php.exe`

     and specify the script location in the Arguments field:

     `C:\Inetpub\vhosts\mydomain.tld\httpdocs\myscript.php`

6. Select the appropriate priority in the Task priority field. Task priority can be set to Low, Normal or High.
7. Specify when to run your command by selecting the appropriate check boxes in the Hours, Days of Month, Months or Days of Week fields.
8. Click OK to schedule the task or click Run Now to schedule the task and immediately run it.