?
Solved

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

Posted on 2008-10-17
2
Medium Priority
?
2,060 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

762 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