Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Some file from my inetsrv directory (c:\windows\system32\inetsrv) were accidentally removed. Is there a way to get them back? Reinstalling IIS server role doesn't help, because Windows doesn't remove inetsrv directory when removing the role. Copying files from another Server 2008 machine doesn't help neither.

share|improve this question

Copying the files from another server should work, but it would have to be at the same patch level.

Have you tried removing the role, manually deleting the directory and then adding the role back?

share|improve this answer
Yes, I've tried it. I remove a role and then get an error trying to install it. – Anonymous Dec 22 '09 at 15:26

What files specifically are missing? If it's administration.config or applicationHost.config from the inetsrv\config folder, you can find a copy of them in C:\inetpub\history in any one of the CFGHISTORY folders that should be there.

Looking at that directory on a W2K8 server without IIS installed shows an empty directory. On a W2K8 server with IIS freshly installed with only the default features selected shows this:

share|improve this answer
I don't know what files exactly are missing. I want to get the initial state of inetsrv folder, as it was before IIS was installed for the first time. Is there any way to do that except for the system reinstallation. What "the clear state" should be? – Anonymous Dec 22 '09 at 15:33
Okay, I have completely removed inetsrv and inetpub folders and now trying to install IIS role. It's taking a bit long... – Anonymous Dec 22 '09 at 16:38
Nope... Even with inetsrv and inetpub folders uninstalled IIS role refuses to install any of the components. – Anonymous Dec 22 '09 at 16:45

If you don't mind losing your IIS sites & settings and starting again, uninstall IIS (which will leave the inetsrv folder as it is) and then follow the instructions in this answer to zap inetsrv. When you re-install IIS, it will re-install the necessary files/folders in inetsrv and you will have a blank IIS installation once again.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.