Click here to Skip to main content
15,888,527 members
Articles / Web Development / IIS / IIS8
Tip/Trick

Reset/Restore IIS Settings to its Default in Windows

Rate me:
Please Sign up or sign in to vote.
4.93/5 (6 votes)
29 Jan 2015CPOL1 min read 99.2K   11   1
How to restore IIS setups to its default, without uninstalling or repairing Windows

Introduction

IIS usually works well in Windows. But sometimes, we customize it to serve a required environment for a particular web project. If we install Xampp in Windows, default Xampp configuration forces IIS to decline its normal beaver or any custom configuration could be the cause.

So let’s see how we can reset IIS to its default settings. I am working with Windows 8 and IIS 8.

Reset IIS

Go to 'Control Panel\Programs’.

Click 'Turn Windows feature on or off'.

Image 1

Uncheck these two check boxes.

Click ok.

Reboot/Restart machine.

Image 2

Again Go to 'Control Panel\Programs'.

Click 'Turn Windows feature on or off'.

Check these two check boxes.

Click ok.

Reboot/Restart machine.

Image 3

Go to 'C:\Windows\System32\Drivers\etc'.

Open the 'hosts' file with Notepad.

Image 4

Remove the Custom IP configurations, if any.

Save the edited hosts file ‘Ctrl+s’.

Image 5

If Windows doesn’t let you save the 'hosts' file, copy the hosts file to another location.

Do edit and save.

Replace the 'hosts' file at 'C:\Windows\System32\Drivers\etc' with your edited 'hosts' file and we are ready to go.

"turn windows features on" An error has occurred. Not all of the features were successful

Sometimes, we may face such section too. In this case ...

  1. Go to 'C:\Windows\\winsxs'
  2. Locate the pending.xml file.
  3. Delete this pending.xml file using Unlocker 1.9.2

For more detail ...

Limitations

  1. I don’t delete my default web site from IIS, so I am not sure if you have deleted yours, would this process restore your default web site or not.
  2. If you have manually configured IP and ports for Xampp, or want to use it again, you need to configure it again.
  3. Your old web sites will not be shown at the IIS, but you will find the site folders under ‘C:\inetpub’ or at their actual locations.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Bangladesh Bangladesh
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- No messages could be retrieved (timeout) --