War On Errors Sign In
Article ID: 31427
Last Reviewed: 4/27/2010 12:17:31 PM

How to Delete and recreate Microsoft Exchange OWA virtual directories

Problem

How to delete and recreate Microsoft Exchange OWA Virtual Directories


Resolution

1. Backup the Microsoft  Exchange-related IIS virtual directories. Even if the IIS virtual directories are damaged, backing up prior to deleting them is recommend , in case something  goes wrong during the fix. 

- To back up the existing virtual directories, open the IIS Manager console and navigate to Your Server -> Web Sites -> Default Web Site

- Right click on the Default Web Site and select Save Configuration to a File

- Enter a file name to use for the configuration data, verify that the path is correct, and click OK.
 

- Expand the Default Web Site container in the IIS Manager, and you will see a list of all of

the IIS virtual directories included in the default Web site. To get rid of a virtual directory,

simply right click on it and select Delete. 

- You will be prompted to confirm you are sure you want to delete the virtual directory.

Click Yes and the virtual directory will be removed. 

A word of caution: Not all virtual directories found under the Default Web Site are related

to Exchange Server. You should only delete the Exadmin, Exchange, ExchWeb,

Microsoft-Server-ActiveSync, OMA, and Public directories.  





- The Exchange remnant is now removed.
- Close the IIS Manager console and
open the Metabase Explorer tool (located on the Start -> All Programs -> IIS Resources menu).  If you do not have the Microsoft IIS 6.0 Resource kit  you can download it here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=56FC92EE-A71A-4C73-B628-ADE629C89499&displaylang=en

-  Expand the LM container to view about a dozen subcontainers. 




-  Locate a container called DS2MB, right click on it and select Delete

- You will now see the standard "Are you sure?" message. Click Yes and the container will be deleted.

Create new Exchange-related IIS virtual directories

The clean-up work is complete. Now it's time to recreate the various virtual directories. To accomplish this, restart the Microsoft Exchange System Attendant service.  If after 15 minutes the directories have not been regenerated, you will need to reboot the Microsoft Exchange Server. 

Reset permissions on the ExchWeb directory

The final step in the IIS virtual directory repair process is resetting permissions on the ExchWeb directory. 

- Open the IIS Manager and navigate to Your Server -> Web Sites -> Default Web Site -> ExchWeb

- Right click on the ExchWeb directory, click Properties and select the Directory Security tab. 

- Click the Edit button found in the Authentication and Access Control section to view the Authentication Methods dialog box. 

- Make sure the Enable Anonymous Access checkbox is selected; also uncheck the Integrated Windows Authentication checkbox. 

- Click OK. You may see a dialog box asking if you want to override inheritances. If this happens, click Select All, followed by OK

Click OK a couple more times and quit IIS Manager. 

Your Exchange-related IIS virtual directories should now be functional.

Keywords:
virtual directories default web site IIS Manager Exchange-related IIS Microsoft Exchange OWA OWA Virtual Directories iis 6.0 resource ExchWeb directory Microsoft Exchange Server. Metabase Explorer tool IIS virtual directory