How do I restart the IIS application pools from command line?

7

3

How do I restart the IIS application pools from command line, like I can do from IIS Manager, without restarting IIS itself with iisreset and having to wait up to a minute for it to come back online?

Mihai

Posted 2011-06-13T15:43:50.907

Reputation: 818

Answers

6

You can use the recycle command as mentioned in Recycle an Application Pool on Demand (IIS 7) or use combination of Stop/Start mentioned at Start or Stop an Application Pool (IIS 7). Both have separate sections for command line.

Dinesh Manne

Posted 2011-06-13T15:43:50.907

Reputation: 1 079