IIS7 Application Pool Reset

January 14, 2010

In IIS6 on Windows Server 2003, we could recyle the application pool that hosted our SharePoint site in order to force the web application to perform a JIT compile. This would then reload any DLLs it required. This saved a considerable amount of time over an IISRESET.

That command is:

C:\windows\system32\IISApp.vbs /a "SP Site App Pool" /r

(Note that the first time you run IISAPP.vbs, you’ll get a few confirmation prompts.)

This VBS script does not exist in IIS7 on Windows Server 2008, but the good news is there is an even better command:

c:\windows\system32\inetsrv\AppCmd Recycle AppPool "SP Site App Pool"

Type “AppCmd /?” for a list of all the useful actions you might want perform against your IIS7 installation.

tags: , ,
posted in Reference, SharePoint by Sherman

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
 
Powered by Wordpress and MySQL. Theme by Shlomi Noach, openark.org