Geeks With Blogs

News This is my old Sysadmin blog. April 2009 I moved all this content to http://thefluffyadmin.net/
Robert's Sysadmin Blog Unraveling the datacenter one fibre at a time

Ever had one of those days .. where you accidentily delete your Default Website in ISS, and all the exchange stuff along with it?  :D

Have no fear, MS KB is here!

http://support.microsoft.com/?ID=280823

a. Download and install the IIS 6.0 Resource Kit Tools. To obtain the IIS 6.0 Resource Kit Tools, visit the following Microsoft Web site:
If you do not want to install all the IIS 6.0 Resource Kit Tools, click the Custom installation option to install only Metabase Explorer 1.6.
b. Start IIS Manager.
c. Back up the metabase. To do this, right-click Default Web Site, click All Tasks, and then click Save Configuration to a File. Type a filename for the file and click OK.
d. Expand Default Web Site, and then delete the following virtual directories:
Microsoft-Server-ActiveSync
OMA
Exadmin
Exchange
Public
ExchWeb
e. Start Metabase Explorer. To do this, click Start, point to All Programs, point to IIS Resources, point to Metabase Explorer, and then click Metabase Explorer.
f. Expand the LM key, right-click the DS2MB key, and then click Delete.
g. Close Metabase Explorer.
h. Restart the Microsoft Exchange System Attendant service to re-create the virtual directories in IIS.

Note If the virtual directories are not re-created after 15 minutes, restart the server.
i. In IIS Manager, expand Default Web Site, right-click Exchweb, and then click Properties.
j. Click the Directory Security tab, and then click Edit under Authentication and access control.
k. Verify that only the Enable anonymous access check box is selected.
l. Right-click Default Web Site, and then click Stop.
m. Right-click Default Web Site, and then click Start.

Now that is a straight copy paste from the KB Article. However.. I immediately had to wonder how the System Attendant service knew what my default website is.. or was. How does IIS flag the ‘ default website’  ?

A rummage though the IIS metabase basicly shows that under the W3SVC node, the site with ID 1, is the Dafult Website. I made a new site, which got a unique identifier, and just renamed it to 1 in the metabase. 5 minutes later the System Attendent service had rebuild my Exchange virtual folders! Woohoo!

Iis_metabase

Posted on Thursday, December 9, 2004 12:34 AM Tech , In The Trenches | Back to top


Comments on this post: ITT: Restoring Outlook Web Access (OWA) (Solved)

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
Dude, thank you for this! The one KB article MS had that I saw on this was lacking huge amounts of detail, maybe I didnt see the one you are referring to but it doesnt matter now, I appreciate you posting this, got my OWA back up in like 3 minutes.

You rule!

Left by Joe on May 03, 2005 8:17 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
WOW. You rock. I made the mistake of moving the Default pages around and it hosed my IIS OWA. After 5 days of Google and MS Tech notes I stumbled on your site.

THANK YOU!!!!!!
Left by Josh on May 11, 2005 6:39 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
greate work, thx
Left by E.G. on Jun 10, 2005 10:17 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
THANK YOU FROM THE WORKER WHO DELETED THE DEFAULT WEB SITE.
Left by M.C. on Sep 26, 2005 2:07 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
You F#!$ing ROCK!
Left by Rob on Oct 10, 2005 3:48 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
You rock. Ive killed myself for 3 days looking for a solution. I found the Microsoft KB article but it dident work. Missing information, I had to fix the ID for my default and everything is cool.
Left by Another guy who deleted the defa on Feb 01, 2006 3:54 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
I was wondering how I could restore the default website, not just the Exchange subdirectories. Any tips?
Left by Mo Alem on Apr 03, 2006 3:55 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
Awesome Rob, nice quick and easy fix for a problem that was driving me crazy :)

Thanks!
Left by Kat on Apr 05, 2006 6:42 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
Fantastic Info - Thanks!
Left by Matt on May 27, 2006 8:29 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
I'm still getting HTTP/1.1 401 Unauthorized when I try to access my Exchange virtual directory...

website.com/Exchange

etc...

I get propmted for the username and password but it never takes it. It gives me three tries and then fails.
Left by Jon on Sep 15, 2006 8:21 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
I am still getting the same thing that Jon is getting. What else do I need to look for? I am on the same subnet as my back-end exchange server.
Left by Stephen on Dec 23, 2006 5:59 PM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
This is EXACTLY what I was looking for!! - THANK YOU! - I've just waiting for the default sites to come back; but by the sound of it, it should only be a few more minutes!!....
Left by Martin Ridd on Jan 30, 2008 7:02 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
YUP! It worked [although I had to go back and use the .XML method (3) in the KB article], but wouldn't have found it without you! :D Cheers!
Left by Martin Ridd on Jan 30, 2008 9:12 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
hi,

i have a different kind of problem. internally i cannot access my http://mail.domain.com/exchange but external working fine provided i put the url in the IE secure site.

previously, we change the static ip due to ISP changes switchboard. but after pointing to the new ip and set the reverse dns, still having the same problem.

i have seek high and low for this problem but normally forum will have problem like this the other way around; access internal ok, external failed. Mine is different, external ok, internal failed.

please help!!
Left by amy on Feb 12, 2008 11:05 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
Thanks worked perfectly, shhhhhooooooooooo
Left by Rob on Aug 13, 2008 2:29 AM

# re: ITT: Restoring Outlook Web Access (OWA) (Solved)
Requesting Gravatar...
Thank your very much Robert.
* * * * *
Left by Merin Nakarmi on Jun 29, 2011 7:57 PM

Your comment:
 (will show your gravatar)


Copyright © Robert Kloosterhuis | Powered by: GeeksWithBlogs.net