Solved

Run a script to restart pool on web server

Posted on 2011-09-27
3
295 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

Create the perfect environment for any meeting

You might have a modern environment with all sorts of high-tech equipment, but what makes it worthwhile is how you seamlessly bring together the presentation with audio, video and lighting. The ATEN Control System provides integrated control and system automation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Internal to DMZ IIS Authentication. 3 57
innerHTML 7 40
Executing a script on a timer online 5 32
Validating Date 4 28
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

685 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