We help IT Professionals succeed at work.

remove a IIS web site  on Windows 2008 and Windows 2012

Medium Priority
99 Views
Last Modified: 2019-11-14
Hi,


I need to remove a IIS web site  on Windows 2008 and Windows 2012. Are there any special steps I need to follow?
Comment
Watch Question

Ryan ChongSoftware Tead Lead / Business Analyst / System Analyst / Data Engineer
CERTIFIED EXPERT
Commented:
you can simply go to the IIS console, right click the site to remove it

Untitled.jpg
OR you can do that using PowerShell as well

Remove-IISSite
https://docs.microsoft.com/en-us/powershell/module/iisadministration/remove-iissite?view=win10-ps

Author

Commented:
But If I want to stop the service first for few days and see if there is any call. Should I stop the web site or the application pool?
Ryan ChongSoftware Tead Lead / Business Analyst / System Analyst / Data Engineer
CERTIFIED EXPERT
Commented:
you can't really stop application pool, so want you can do is to stop the website, or disable the IIS service. If you disable the IIS service, all the websites will be unavailable.
Scott FellDeveloper & EE Moderator
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
In the IIS UI, you can click on the site, on the right there is a stop/start link that will allow you to stop the service for that site.  If you stop the service, I think the only way you can see if there is a call to the site is by somebody complaining. If you want to view activity, look at the logs for that site.

Author

Commented:
What happen if I just stop the spooler?

Author

Commented:
Any update?
Scott FellDeveloper & EE Moderator
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013

Commented:

Author

Commented:
I'm just curious and would like to know the difference between stopping a pool and the web site.
Developer & EE Moderator
CERTIFIED EXPERT
Fellow
Most Valuable Expert 2013
Commented:
Stopping the application pool is shutting down the worker process associated with that pool. You can have multiple sites associated with one app pool.  Shutting down the site and not the app pool allows the worker process to continue which also means other sites can continue to run but you kill access to that site.

If the app pool for the site only serves the one site, then I believe you can just shut both off.

Author

Commented:
Thanks guys!