Solved

Run a script to restart pool on web server

Posted on 2011-09-27
3
293 Views
Last Modified: 2012-08-14
I need to call this when Requests reach a certain level to restart the pool on the web server.

cscript c:\windows\system32\iisapp.vbs /a "%cpsaconnect%" /r

Thoughts on doing this...totally out of my area but I'm the only one available.
0
Comment
Question by:TimSweet220
  • 2
3 Comments
 

Author Comment

by:TimSweet220
ID: 36713051
Can I do this with a web service?
0
 

Author Comment

by:TimSweet220
ID: 36713085
Do this in the web service?

<Target Name="RecycleAppPool">
<Exec Command="cscript c:\windows\system32\iisapp.vbs / /r" WorkingDirectory="c:\windows\system32" ContinueOnError="true"/>
<OnError ExecuteTargets="ErrorHandler"/>
</Target>
0
 
LVL 50

Accepted Solution

by:
Steve Bink earned 500 total points
ID: 36715509
I'm guessing you are using IIS6.  Have you looked at the recycling options under the application pool's properties?
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now