The VBScript Network and Systems Administrator's Cafe

Jun 5 2009   4:12PM GMT

Turning on IIS Health monitoring’s worker process ping via VBScript

Jerry Lees Jerry Lees Profile: Jerry Lees

Some of the health monitoring options for IIS 6.0 are not optimally setup for most environments. For example, recycling the workerprocess after 1740 minutes of running may not be what most people want to do… especially since when you do the math it comes to 29 hours. Having IIS recycle on it’s own every day– offset 5 hours from the previous day is likely something that is going to cause you a head ache.

Another one that may is the pinging of the IIS workerprocess. However, changing a bunch of servers and ensuring each is consistant can be a pain. Enter VBScript, plus Microsoft has already written the code for us in adsutil.vbs!!

To turn on

To enable application pool health monitoring by using Adsutil.vbs at the command prompt, type:

cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingingEnabled TRUE

Note: Be sure to change TRUE to FALSE if you want to turn it off.
To change the ping interval by using Adsutil.vbs at the command prompt, type:

cscript %SystemDrive%\Inetpub\AdminScripts\adsutil.vbs set W3SVC/AppPools/ApplicationPoolName/PingInterval n

Note: Be sure and replace n with the number of seconds that you want to elapse between pings.

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: