Tip: SharePoint development and IISReset
July 23, 2007
There are many unavoidable situations when you need to do an IISReset during SharePoint development (for example: feature installation/re-installation)But as IISReset is an expensive command, use the following instead:
cscript c:\windows\system32\iisapp.vbs /a “[App_Pool_Name]” /r
Note: DO NOT forget the /r at the end. Even better, create a batch file as following:
Ar.bat
cscript c:\windows\system32\iisapp.vbs /a “%1″ /r
To recycle a pool, simply run AR.BAT <pool_name>
You can hard-code the poolname if you are constantly working on a single pool and create multiple batch files for each pool.