IIS on Vista / Server 2008 is one of those things where messing with it outside of the configuration interface can really jack things up - almost to the point of having to reinstall IIS or even your OS.
I came across this a while back (I can't remember the source, so credit can go to the tech fairy) - before messing with IIS (even through the configuration panel) you should backup the configuration files IIS uses - here's how...
Let's go really low-tech and create a simple bat file to get the job done:
- Create a new bat file and name it something like: backupiis.bat
- Put the following code in it (changing the value of DestPath) -
@For /F "tokens=2,3,4 delims=/ " %%A in ('Date /t') do @(
copy C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config %DestPath%machine.config_%Year%%Month%%Day%
copy C:\Windows\System32\inetsrv\config\applicationHost.config %DestPath%applicationHost.config_%Year%%Month%%Day%
- Execute by double clicking on the bat file or setup a scheduled task