A Script To Recycle App Pools In IIS
Did you know that there is a script that was shipped with Windows 2003 SP2 that allows you to recycle your IIS Application Pools.
Below is the command that you use from the command line:
Description: list IIS application pools and associated worker process Recycle application pools.</p> <p>Syntax: IIsApp.vbs [{ /a <app_pool_id> | /p <pid> } [/r] ]</p> <p>Parameters:</p> <p>Value Description /a <app_pool_id> Specify an application pool by name. Surround <app_pool_id> with quotes if it contains spaces. If used alone without an accompanying action, IIsApp.vbs will report PIDs of currently running w3wp.exe processes serving pool <app_pool_id>. /p <pid> Specify a process by process ID. If used alone without an accompanying action, IIsApp.vbs will report the AppPoolId of the w3wp process specified by <pid>. When a PID is specified with /r, that PI is mapped to an application pool and the action is taken upon the application pool. If a PID is given for a web garden, i.e. an application pool served by more than one w3wp, then all w3wp's for that application pool will be acted upon. /r Recycles the application pool.</p> <p>DEFAULT: no switches will print out the PID and AppPoolId.</p> <p>Examples:</p> <p>IIsApp IIsApp /p 2368 IIsApp /a DefaultAppPool /r IIsApp /p 2368 /r
February 5, 2010 | Posted by admin
Categories:
Tags: |