Will restarting the W3SVC Web Publishing Service, also restart the app pool in IIS?

Posted by Mark Rogers on Server Fault See other posts from Server Fault or by Mark Rogers
Published on 2010-05-27T21:55:38Z Indexed on 2010/05/27 22:02 UTC
Read the original article Hit count: 254

Background:

I'm trying to stop and start IIS on a windows 7 build box, in order to run acceptance tests. But from what I have read, most of the remote web management features have been disabled by Microsoft in a retarted attempt to sell more Windows Server 2008 licenses. Still for some reason they didn't disable the least user-friendly ways of controlling IIS remotely, but they are all a total pain.

What I can do easily is remotely stop and start the WWW service from a msbuild task. But I want to be sure that this also restarts the app pool, so that when I copy in new web files the web server there will be serving the most recent version of the website.

Question:

If I restart the W3SVC windows service, will that also restart the app pool?

© Server Fault or respective owner

Related posts about windows-7

Related posts about iis7