IIS 7 Corrupted and will not Remove from Windows Server 2008

Posted on 2009-04-13
Medium Priority
Last Modified: 2012-05-06

OK i am totally stuck with this one - i have tried everything i know but still no luck. First off, a bit of background information. This server is an active Exchange 2007 server, and is currently in operation. However,  it would not accept OWA requests from the internet. After a lot of researching, it became apparent that that all i could try to do was remove the owa virtual directory. I ran the relevant command from Exchange Management Shell, and it said it removed successfully, although this was the start of all my troubles. I could then not recreate this directory either via IIS or the Exchange Management Shell.

I then tried to remove the default web site, via both IIS and EMS again, however it would not go anywhere, giving ,me an error about the applicationHost.config file being corrupt. I then tried removing IIS Role form the Server Manager, which said it was successful. After rebooting, it appeared that updates were being installed and after logging in, it said that IIS was uninstalled and that i had to reboot. After rebooting (which took much longer than the first time) it gave me the same message, and after rebooting (which took eveeeen longer) it says the same thing AGAIN!! It just will not remove.

After further inspection, i cannot find the IIS Admin Service under services, not can i find WOrld Wide Web Publishing Service. But it still thinks i need to reboot to remove IIS, and will not let me add it until i reboot. But i know if i reboot, i will get the same message again and will go round in this loop forever until it takes all week to reboot.

Has anybody ever had this issue? If not, could somebody pelase guide me through manually removing IIS 7?

It may also be worth noting that i can still open IIS manager, however my server does not appear there. And i cannot delete the Inetsvr folder either, i am assuming because it is protected via Windows File Protection.

Any ideas would be much appreciated!

Question by:sparky2156

Expert Comment

ID: 24135621
did the removal of IIS give you any errors in the application event log?

On the plus side your following the right line .. http://support.microsoft.com/kb/320202

Have you tried to add the Web Server (IIS) role and the required role services again? installing it again may fix your issue as it should reinstall the binaries.
You can do it by running the following and the follow the Exchange 2007 part of http://support.microsoft.com/kb/320202

ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-ISAPI-Ext
ServerManagerCmd -i Web-Metabase
ServerManagerCmd -i Web-Lgcy-Mgmt-Console
ServerManagerCmd -i Web-Basic-Auth
ServerManagerCmd -i Web-Digest-Auth
ServerManagerCmd -i Web-Windows-Auth
ServerManagerCmd -i Web-Dyn-Compression

Open in new window


Expert Comment

ID: 24135630
another thought .. you said the original problem was that you couldn't get OWA to work from the internet.

Did it work internally?

Author Comment

ID: 24139740

I have managed to remove IIS by removing WPA and stopping al the services, however it will now not reinstall. None of the folders (inetsrv or inetpub) are there anymore, nor are the services, however it just will nto re-install.

As soon as i tried runing your first command, i got a whole load of error messages and prompted to reboot to undo the changes. The followeing is what was returned:

Microsoft Windows [Version 6.0.6001]
Copyright (c) 2006 Microsoft Corporation.  All rights reserved.

C:\Users\administrator.CHERRYDENTAL>ServerManagerCmd -i Web-Server

Start Installation...
[Installation] Succeeded: [Web Server (IIS)] Management Tools.
[Installation] Succeeded: [Web Server (IIS)] Web Server.
[Installation] Succeeded: [Web Server (IIS)] Common HTTP Features.
[Installation] Succeeded: [Web Server (IIS)] Health and Diagnostics.
[Installation] Succeeded: [Web Server (IIS)] Security.
[Installation] Succeeded: [Web Server (IIS)] Performance.
Error: Installation of [Windows Process Activation Service] Configuration APIs f
ailed. The server needs to be restarted to undo the changes.

Error: Installation of [Windows Process Activation Service] Process Model failed
. The server needs to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] IIS Management Console failed. The ser
ver needs to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] HTTP Logging failed. The server needs
to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Static Content Compression failed. The
 server needs to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Request Filtering failed. The server n
eeds to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Request Monitor failed. The server nee
ds to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] HTTP Errors failed. The server needs t
o be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Static Content failed. The server need
s to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Default Document failed. The server ne
eds to be restarted to undo the changes.

Error: Installation of [Web Server (IIS)] Directory Browsing failed. The server
needs to be restarted to undo the changes.


Error: Installation of one or more roles, role services, or features failed, and
 a restart is required. Check the Server Manager log for additional information
and try again.

I am guessing that the same thing which is causing this not to install from the command is also causing it not to install via server manager.

Do you have any idea how to get IIS to be completely removed, so that i can run a fresh install, or do you know of anything which could be stopping the installation?

To answer your question, yes the internal version of OWA was perfect, is was just external useres. All ports were open, and the external URL was also defined. Users could get to the screen prompting them about the certificate, and when you clicked continue anyway, that is when i got the 404 error and nothing would go any further.

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.


Expert Comment

ID: 24139998
ah, IIS looks hosed ... to be honest, it would be a good idea to raise a call with Microsoft to sort it out

BTW, your gonna love this, there was nothing wrong with IIS, you just need to do a bit of configuration with Exchange to sort out External OWA :-(

Author Comment

ID: 24140083
Yea, i think you are right about it not being corrupted in the first place, but what appeared to be a simple fix destroyed IIS, and as always in IT, once you start down those roads, your committed and theres no way back!

Have you any ideas on how to remove my IIS? doesnt matter how many times i try to install it, it just keeps on failing. Its like there is just some bad configration hanging around somewhere, like the registry ot the file system, and it just keeps getting stuck. As far as Windows is concerned, its not on, but it wont let me install it.

I'm sure if i could jsut get it to re-install, i could remove the Client Access Role, re-install it (using the guide you provided via microsoft) and all the OWA virtual directorys will be recreated. But i just cant get it to install!!!

I will contact Microsoft Support first thing in the monring and raise a support call with them, but in the meantime, do you have any more suggestions?

Thanks for all of your help so far.


Expert Comment

ID: 24140300
if removing it by servermanager or servermanagercmd doesn't work, then I dont have a clue.

Do the event logs say anything of any use?

Let me know what MS say (I am ExMicrosoft Exchange Support)

Accepted Solution

sparky2156 earned 0 total points
ID: 24330358

Sorry for the late reply. Unfortunately, if you remove IIS 7 from Windows Server 2008, it is never going back on properly. . . . EVER!

You just have to re-install the OS, hopefully they will fix this in the next Service Pack release

Also, you are going to love this - the reason that OWA would not work was because the mailboxes had become dismounted on the reboot. Exchange 2007 does not remount the mailbox store after reboot automatically, however this is easily changeable via the Exchange Management Console.


Expert Comment

ID: 24334213
Assume you raised a call with MS? One comment really . Damm, let hope R2 fixes it

Expert Comment

ID: 24760686
im currently in the middle of vigerously testing windows server 208 Enterprise and Datacenter Edition but unfortunately it behaves too much like Vista!!!!

In regards to IIS breaking easily i do believe MicroSoft have released a few updates to sort it out :D

Author Comment

ID: 24772041
Lets just hope its released soon.


Expert Comment

ID: 25669564
If you uninstall the Windows Process Activation feature you will then be able to install IIS7 again (and then WPA again) with no problem.

Expert Comment

ID: 33353484
A Solution - without reinstalling the OS:

For anyone else who finds this i'd just like to add that i had the same issue - removed IIS and couldnt reinstall it..

Found some information stating that,
*  in server2008 i went in to Start --> Server Manager --> Features --> Remove Features
*  then un-tick the Windows Process Activation Service
*  Reboot the server

Once Rebooted -
*  Go in to Start --> Server Manager and then wait for it tom complete the removal process
*  In Server Manager, GoTo Roles --> Add Role
*  Add IIS and select the features you require.
(Adding IIS also reinstalls the windows process activation service)

Really Hope this helps someone else..

I got the information above from: http://social.technet.microsoft.com/Forums/en-US/winserverwsus/thread/096cd3c2-59c6-49ca-9d1a-a71c53839e85

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will help to fix the below errors for MS Exchange Server 2016 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
In my humble opinion (IMHO), TouchDown from Symantec is the best in class for this type of application, but Symantec has end-of-lifed it and although one can keep using it, it will no longer be supported or upgraded.  Time to look for alternatives t…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question