Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Run a script to restart pool on web server

Posted on 2011-09-27
3
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

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…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

722 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