Easy way to reload multiple applications under a single IIS Website after AppPool Recycle?

Posted by MadBurn on Server Fault See other posts from Server Fault or by MadBurn
Published on 2012-07-09T14:16:38Z Indexed on 2012/07/09 15:17 UTC
Read the original article Hit count: 205

I'm not sure where to begin or even if my thinking is in the right direction. Hopefully someone here can tell me what to do or at least give me a direction to start travelling.

I work on a Intranet Website, that contains multiple MVC3 and Coldfusion Applications. I have set the AppPool to Recycle every morning at 2:00 AM. Now, I would like to create a Scheduled Task to reload every application contained under that IIS Website so that when the first user comes in in the morning, they don't have to wait 30 seconds to 2minutes for their application to be reloaded into the IIS AppPool.

Is there an easy to to do this? As I see it my only options are:

  • Writing a bash script, inserting each website manually to load
  • Writing a program that would try to find every application and load them

Now, if there those are my only options, is there possibly a .NET Library I can tap into that would allow me to easily find the MVC3 Applications under IIS?

© Server Fault or respective owner

Related posts about windows-server-2008-r2

Related posts about iis7.5