It has been seen that sometimes IIS will stop working for unexpected reasons, in this situation we must restart the IIS manually. This process may tedious work for some people many times. So we can restart IIS using schedule (scheduler task), this task will be restart IIS particular interval as per our settings. In this post, we discuss how to restart IIS using scheduled tasks step by step.

Let’s Start. Steps to Restart IIS using Schedule Tasks are as followed :

  1. Go to the control panel and click Administrative Tools
  2. Select Task Scheduler
  3. In the Task Scheduler window, click Create Basic Task on the right side Actions panel
  4. Create Basic Task wizard window will be open
  5. Enter the Task name as IIS Restart in the Name area and Add the description if you wish and click Next.
  6. In the Task Trigger area select when do you want the IIS restart task to start, Daily or Weekly, or whatever your needs
  7. If you select Daily you can add the task start time
  8. In the Action area select start program options and click next
  9. Click on Program/Script browse button and select C:\Windows\System32\iisreset.exe and click the next button
  10. You can review your settings and click to Finish button
  11. Now your IIS Reset scheduler task will be added and it will start as per your scheduler time

If we would like to modify the task, right-click on the task and select properties it will be open the Task settings window here we can modify anything as we wish. Now we wish, if you follow the steps you will easily restart IIS using the schedule.

You may like: Download Crystal Reports For Visual Studio 2015, How to add a Linked Server in SQL Server, Why do we need to use Stored Procedure?

How to restart IIS using schedule tasks step by step

The article was published on November 1, 2016 @ 10:47 AM

Leave a Comment