Wednesday, June 27, 2007

Recycle IIS Application Pool using a command line

Whenever you need to restart a Web Application, it's usually faster to recycle only the associated application pool rather than do an IISRESET.

To accomplish this using a command line, create a batch file (replace MyAppPool with the name of the application pool you want to recycle) as this:

%systemroot%\system32\iisapp.vbs /a MyAppPool /r


No comments: