Tech Off Thread

2 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Script to recycle appDomain?

Back to Forum: Tech Off
  • User profile image
    Eric Falsken

    Does anyone have a script that can recycle an appDomain? I'm tired of running iisreset just to kick one misbehaving website.

  • User profile image
    blowdart

    Eric Falsken wrote:
    Does anyone have a script that can recycle an appDomain? I'm tired of running iisreset just to kick one misbehaving website.


    Are you getting application pool and app domain confused here?

    You could bounce an app domain simply by "touching" the web.config for that application, but you mention iisreset which leads me to believe you mean application pool. You can configure those to recycle on a periodic basis, and of course create a new pool to isolate your bad app.

    Furthermore you can unload applications using ADSUTIL in your c:\inetpub\adminscripts directory;

    adsutil.vbs APPUNLOAD  w3svc/1/root

    If you want a command line to recycle a pool you can grab the utilities from the TechNet article Inside Microsoft.com. It just automates the WMI calls you need to make.








Conversation locked

This conversation has been locked by the site admins. No new comments can be made.