Monday, August 15, 2011

Recycle IIS Application Pool using script

The following code snippet is a simple shell script to recycle IIS application pool.
%windir%\system32\inetsrv\appcmd start Apppool MyAppPoolName
%windir%\system32\inetsrv\appcmd set Apppool MyAppPoolName /autoStart:true
%windir%\system32\inetsrv\appcmd recycle Apppool MyAppPoolName

Related Readings:

2 comments:

  1. If you recycle your stuff, then you could influence more people to follow your example by being more vocal about it. A way to let other people know about your recycling activities is to snap a picture of yourself while at work. Here's the application for doing just that. http://youtu.be/qxQn-00Rr7s

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete

Do provide your constructive comment. I appreciate that.