Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Run a script to restart pool on web server

Posted on 2011-09-27
3
Medium Priority
?
300 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 51

Accepted Solution

by:
Steve Bink earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
What You Need to Know when Searching for a Webhost Provider
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month11 days, 21 hours left to enroll

916 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