Is it possible to remote stop and start a specific IIS web application under Windows Server 2003 R2 SP2?
Our scenario is the following: We have multiple IIS web servers and a dedicated ms sql database server, all running on Windows Server 2003 R2 SP2. Each web server has two web application. An ecommerce application and a standby application that is started when there is maintenance work in progress. On maintenance the ecommerce application is stopped. This is all done manually.
Now I want to know If I can run a script on the database server that stops each ecommerce web application on the web servers and start the standby application. Then I will shutdown sql server automatically, do some maintenance work, restart sql server and remotly restart the ecommerc applications (stopping standby application before).
Is this possible? Can I write a batch or sth. that does the work?
I only know that I can completly stop and start IIS remotly with iisreset.exe. But that will shutdown all applications.