Solved

Run a script to restart pool on web server

Posted on 2011-09-27
3
292 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
Comment Utility
Can I do this with a web service?
0
 

Author Comment

by:TimSweet220
Comment Utility
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
Comment Utility
I'm guessing you are using IIS6.  Have you looked at the recycling options under the application pool's properties?
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 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

11 Experts available now in Live!

Get 1:1 Help Now