To run a script from Task Scheduler follow these steps:
Note: You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
- Go to Control Panel > Task Scheduler > click Create > and select Scheduled Task.
- Select User-defined script.
- Enter a task name.
- Select root as the user (The script needs to run as root).
- Untick Enable so it does not run on a schedule.
- Click Task Settings.
- In the box under User-defined script type the path to the script.
- e.g. If you saved the script to a shared folder on volume 1 called "scripts" you'd type: /volume1/scripts/syno_dsm_reinstall.sh
- Click OK to save the settings.
- Click on the task - but don't enable it - then click Run.
- Once the script has run you can delete the task, or keep in case you need it again.
Here's some screenshots showing what needs to be set:
Step 1
Step 2
Step 3
Step 4