Solved

How to Schedule a Task, which will run After the IIS reset is occured.

Posted on 2008-10-17
2
1,803 Views
Last Modified: 2012-08-13
Hi guyz,

I have  smalll issue, i want to run program which will execute after when a IIS reset is occured.
Like in our web server if IIS reset is occured once in month then the task will run once. I dont know how to setup it in Task Scheduler, Because i found their is only option like time setting or windows reboot.

So please guide me accordingly in windows task schedule (I am using win 2K3 with SP 2) how can i configure a task which will run soon after the IIS reset is occured.

Thanks
waqas
0
Comment
Question by:waqas105
2 Comments
 
LVL 4

Accepted Solution

by:
Syncromind earned 500 total points
Comment Utility
You cannot monitor windows events on task scheduller. teh question is, why will iis be resetted?
Instead of that, if iis will reset manually, you can make a batch file that executes iisreset and after executes you program.

If iis reset because computer or something is resetted, you can add that batch file to logon to be sure that the program will run when computer is rebooted.
the batch file (fie.cmd or file.bat , i prefer.cmd) can look liek this:

-----------------
iisreset
c:
cd\
cd "program files"
cd "prorgam"
program.exe
--------------------------
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now