Batch to Logging Worker Process Recycling Events in IIS 6.

I want to log Worker Process Recycling Events in IIS 6.0 (IIS 6.0) , but ther is no UI for this.
I've created batch file and decided to post it here, because current instructions have a few typos.
You should modify value of AppPoolName as appropriate.

:rem IISLoggingWorkerProcessRecycling.bat
:rem from http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/87892589-4eda-4003-b4ac-3879eac4bf48.mspx?mfr=true
set EnableEvent=true
set AppPoolName=ASP.NET v2.0
%systemDRIVE%
cd %systemDRIVE%\inetpub\adminscripts
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleTime" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleRequests" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleSchedule" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleMemory" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleIsapiUnhealthy" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleOnDemand" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecycleConfigChange" %EnableEvent%
cscript adsutil.vbs set "w3svc/AppPools/%AppPoolName%/AppPoolRecyclePrivateMemory" %EnableEvent%

 

posted @ Friday, September 15, 2006 8:27 AM
Print

Comments on this entry:

No comments posted yet.

Your comment:



(not displayed)

 
 
 
 

Live Comment Preview:

 
«December»
SunMonTueWedThuFriSat
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910