Solved

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

Posted on 2008-10-17
2
1,942 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
Syncromind earned 500 total points
ID: 22744493
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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 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