Solved

IIS 7 Corrupted and will not Remove from Windows Server 2008

Posted on 2009-04-13
12
9,376 Views
Last Modified: 2012-05-06
Hi,

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!

Thanks.
0
Comment
Question by:sparky2156
12 Comments
 
LVL 7

Expert Comment

by:flaphead_com
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

0
 
LVL 7

Expert Comment

by:flaphead_com
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?
0
 
LVL 3

Author Comment

by:sparky2156
ID: 24139740
Hi,

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.

<100/100>

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.

Thanks.
0
 
LVL 7

Expert Comment

by:flaphead_com
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 :-(
0
 
LVL 3

Author Comment

by:sparky2156
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.

Cheers
0
 
LVL 7

Expert Comment

by:flaphead_com
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)
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 3

Accepted Solution

by:
sparky2156 earned 0 total points
ID: 24330358
Hi,

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.

Thanks.
0
 
LVL 7

Expert Comment

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

Expert Comment

by:kenzacm
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
0
 
LVL 3

Author Comment

by:sparky2156
ID: 24772041
Lets just hope its released soon.

Thanks.
0
 

Expert Comment

by:Veonik
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.
0
 

Expert Comment

by:NetMatters
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
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
In this video we show how to create an email address policy 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…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now