Solved

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

Posted on 2008-10-17
2
1,905 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
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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows IIS SMTP Server Unable to relay emails 12 80
ESXi VM of Server 2003 Saving Slow. 7 100
Alert on Server memory 2 43
Customising IE behaviour on certain pages 2 57
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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…

713 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