Wednesday, March 5, 2008

Is it possible to setup a scheduled task that will run a web page rather having to log into the server each time and run it manually?

Is it possible to setup a scheduled task that will run a web page rather having to log into the server each time and run it manually?

Yes this is possible within Windows scheduled tasks. Follow these instructions for setting this feature up:

1. Log into your server, open Control Panel, and open Scheduled Tasks.
2. Double click on Add Scheduled Task.
3. Click next on the opening screen.
4. The next screen will give you the ability to select an existing registered application. Scroll down and find Internet Explorer, select this and click Next *
5. On the next screen, select how often you wish to have the task run and provide a unique name for the task.
6. After you click next, select the time you want to have your task run each interval that you selected.
7. Click next again and you will have to provide credentials of an account that has the ability to run scheduled tasks (by default this is normally the Administrator account).
8. Click next again, select Advanced Properties and hit Finish. Within Advanced Properties (on the Task tab) the Run line will have the path to Internet Explorer
9. Go to the end of the path and enter in the web page you wish to run with this particular task (http://www.yourdomain.com/pagetorun.asp)
10. Click on the Schedule tab to verify your task interval settings.
11. Click on the Settings tab and you will want to select the check box (Stop the task if it runs for).
12. Enter in 1 hour for a default value – if your task runs every 30 minutes, then in the minutes option, enter 15 minutes.
13. Click OK and supply your security credentials to verify the changes you have made to the scheduled task.

Your scheduled task is now setup and ready to run. Verify that the task if executing properly by reviewing the Scheduled Task manager. If you see a Last Result value of 0x0, your task is running without any issues. Secondly, verify that the task is processing the updates as you want within your application.

*NOTE: for those who setup the scheduled task, if you do not see Internet Explorer in your list of applications, you can enter the path manually with the following: C:\PROGRA~1\INTERN~1\iexplore.exe.

No comments: