Is there a way to reset IIS 7.5 to factory settings?

TPR picture TPR · Nov 30, 2011 · Viewed 115.4k times · Source

I modified a lot of options in IIS, and would like to reset its settings to default.

I already tried installing/reinstalling it. After the reinstall, it still had the site I created. It was still breaking on the setting I made to the DefaultWebSite.

People suggested uninstalling Windows Process Activation Service first, but it seems like it wasn't installed anyway, so I can't really uninstall it.

How can I reset this installation of IIS back to an out-of-the-box state?

Answer

Carlos Aguilar Mares picture Carlos Aguilar Mares · Nov 14, 2012

You need to uninstall IIS (Internet Information Services) but the key thing here is to make sure you uninstall the Windows Process Activation Service or otherwise your ApplicationHost.config will be still around. When you uninstall WAS then your configuration will be cleaned up and you will truly start with a fresh new IIS (and all data/configuration will be lost).