Microsoft KB Archive/883380

= How to reset the default virtual directories that are required to provide Outlook Web Access, Exchange ActiveSync, and Outlook Mobile Access services in Exchange Server 2003 =

Article ID: 883380

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition

-





SUMMARY
''This article describes how to re-create the Microsoft Exchange Server-related virtual directories in Internet Information Services (IIS). Microsoft Exchange Server 2003 supports Microsoft Outlook Web Access, Exchange ActiveSync, and Outlook Mobile Access. These services are enabled through six virtual directories that are created by default in IIS when you install Exchange Server 2003. If the virtual directories become corrupted, or if any one of the related services fail, you may want to remove these virtual directories. However, these virtual directories are not automatically re-created.

In this scenario, you must use one of the following methods to remove and then re-create the virtual directories in IIS:''
 * Method 1. Use Metabase Explorer from the IIS 6.0 Resource Kit Tools
 * Method 2. Use Adsutil.vbs
 * Method 3: Edit the Metabase.xml file



INTRODUCTION
Sometimes you must re-create the Microsoft Internet Information Services (IIS) virtual directories when you experience problems with Microsoft Outlook Web Access or other mobility services on your Microsoft Exchange Server 2003 computer. By default, Exchange Server 2003 creates the following six IIS virtual directories: Exadmin, Exchange, ExchWeb, Microsoft-Server-ActiveSync, OMA, and Public.

However, if you delete the IIS virtual directories that are used by Outlook Web Access and by other mobility services, the virtual directories are not automatically re-created when you restart the Exchange System Attendant service. This article describes two methods that you can use to delete and to re-create the virtual directories that are used by Outlook Web Access.

Note In Microsoft Exchange 2000 Server, after you delete the virtual directories for Outlook Web Access, the virtual directories are re-created when you restart the Exchange System Attendant service.

For more information about the virtual directories for Outlook Web Access in Exchange Server 2003, click the following article number to view the article in the Microsoft Knowledge Base:

821898 Virtual Internet Information Services (IIS) directories that are used by Outlook Web Access in Exchange Server 2003



MORE INFORMATION
To delete and to re-create the virtual directories for Outlook Web Access, use one of the following methods.

Method 1: Use Metabase Explorer from the IIS 6.0 Resource Kit Tools
 Install the IIS 6.0 Resource Kit Tools. To obtain the IIS 6.0 Resource Kit Tools, visit the following Microsoft Web site:

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

Note If you do not want to install all the IIS tools on your computer, you can install only the Metabase Explorer 1.6 component. To do this, follow these steps:  Double-click iis60rkt.exe, and then follow the instructions that are on your screen until you reach the Setup Type page of the IIS 6.0 Resource Kit Tools Setup Wizard. On the Setup Type page, click Custom, and the click Next. Click to clear all the IIS Resource Kit Tools and components check boxes except the Metabase Explorer 1.6 check box. Click Next, and then click Finish. </li> Back up your IIS metabase. To do this, follow these steps:  Start IIS Manager.</li> Right-click Default Web Site, point to All Tasks, and then click Save Configuration to a File.</li> In the Save Configuration to a File dialog box, type a configuration name in the File name input box, and then click OK.</li></ol> </li> Delete the virtual directories for Outlook Web Access. To do this, expand the Default Web Site in the left pane of IIS Manager, right-click Exadmin, and then click Delete. Click Yes when you are prompted with the question of whether you want to delete this item.

Repeat this step for the following virtual directories: <ul> Exchange</li> ExchWeb</li> Microsoft-Server-ActiveSync</li> OMA</li> Public</li></ul> </li> Quit IIS Manager.</li> Click Start, point to All Programs, point to IIS Resources, point to Metabase Explorer, and then click Metabase Explorer.</li> Expand LM, right-click DS2MB, and then click Delete. Click Yes when you are prompted with the question of whether you want to delete this key and all subkeys.</li> Quit IIS Metabase Explorer.</li> Click Start, point to All Programs, point to Administrative Tools, and then click Services.</li> <li>To restart the Microsoft Exchange System Attendant service, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type services.msc, and then click OK.</li> <li>Right-click Microsoft Exchange System Attendant, and then click Restart.</li> <li>When you are prompted to restart the dependant Exchange Server services, click Yes.

Note When you restart the Microsoft Exchange System Attendant service, the Microsoft Exchange Information Store service is also restarted. In this scenario, your Exchange Server users lose connectivity to their Exchange Server mailboxes.</li></ol>

The virtual directories are re-created. To verify that the virtual directories are re-created, start IIS Manager, and then view the Default Web site folder.

Important If the virtual directories are not re-created after 15 minutes, restart your computer.</li> <li>Reset the access permissions to Anonymous. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Start IIS Manager, right-click ExchWeb, click Properties, and then click the Directory Security tab.</li> <li>Under Authentication and access control click Edit, and then verify that the Enable anonymous access check box is turned on.</li> <li>Click to select the Integrated Windows authentication check box, click OK, and then click Apply.</li> <li>If you an Inheritance Overrides dialog box appears, click Select All, and then click OK.</li> <li>Under Authentication and access control, click Edit, and then click to clear the Integrated Windows authentication check box.</li> <li>Click OK two times, and then quit IIS Manager.</li></ol> </li></ol>

Use a Web browser to verify that you can connect to your Outlook Web Access server. If you are also running other mobility services, verify that you can connect to these services by using an appropriate client.

Method 2: Use Adsutil.vbs
<ol> <li>Back up your IIS Metabase. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Start IIS Manager.</li> <li>Right-click Default Web Site, point to All Tasks, and then click Save Configuration to a File.</li></ol> </li> <li>Delete the virtual directories for Outlook Web Access. To do this, right-click Exadmin in the left pane of IIS Manager, and then click Delete. Click Yes when you are prompted with the question of whether you want to delete this item.

Repeat this step for the following virtual directories: <ul> <li>Exchange</li> <li>ExchWeb</li> <li>Microsoft-Server-ActiveSync</li> <li>OMA</li> <li>Public</li></ul> </li> <li>Quit IIS Manager.</li> <li>Click Start, click Run, type cmd, and then press ENTER.</li> <li>Change to the following folder. In this example,  is the hard disk drive where Windows is installed:



</li> <li>Type adsutil, and then press ENTER.

Important By default, CScript is not the default scripting host for Windows Server 2003. To run the adsutil command, CScript must be configured as the default scripting host. To do this, click Yes if you are prompted to register CScript as you default host for VBscript, and then click OK.

Note If you receive a list of adsutil command options, CScript is already configured as the default scripting host for VBscript.</li> <li>Type adsutil delete ds2mb, and then press ENTER.

Note To set the default scripting host to WScript, type WScript //H:WScript at the command prompt, press ENTER, and then click OK.</li> <li>Click Start, point to All Programs, point to Administrative Tools, and then click Services.</li> <li>To restart the Microsoft Exchange System Attendant service, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type services.msc, and then click OK.</li> <li>Right-click Microsoft Exchange System Attendant, and then click Restart.</li> <li>When you are prompted to restart the dependant Exchange Server services, click Yes.

Note When you restart the Microsoft Exchange System Attendant service, the Microsoft Exchange Information Store service is also restarted. In this scenario, your Exchange Server users lose connectivity to their Exchange Server mailboxes.

The virtual directories are re-created. To verify that the virtual directories are re-created, start IIS Manager, and then view the Default Web site folder.

Important If the virtual directories are not re-created after 15 minutes, restart the computer.</li></ol> </li> <li>Reset the access permissions to Anonymous. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Start IIS Manager, right-click ExchWeb, click Properties, and then click the Directory Security tab.</li> <li>Under Authentication and access control click Edit, and then verify that the Enable anonymous access check box is turned on.</li> <li>Click to select the Integrated Windows authentication check box, click OK, and then click Apply.</li> <li>If an Inheritance Overrides dialog box appears, click Select All, and then click OK.</li> <li>Under Authentication and access control, click Edit, and then click to clear the Integrated Windows authentication check box.</li> <li>Click OK two times, and then quit IIS Manager.</li></ol> </li></ol>

Use a Web browser to verify that you can connect to your Outlook Web Access server. If you are also running other mobility services, verify that you can connect to these services by using an appropriate client.

Method 3: Edit the Metabase.xml file
To resolve this issue, you must modify the Metabase.xml file. The modified Metabase.xml file causes the Exchange Server-related virtual directories to be re-created when the Microsoft Exchange System Attendant service is restarted. To do this, follow these steps.

Warning If you edit the metabase incorrectly, you can cause serious problems that may require you to reinstall any product that uses the metabase. Microsoft cannot guarantee that problems that result if you incorrectly edit the metabase can be solved. Edit the metabase at your own risk.

Note Always back up the metabase before you edit it. <ol> <li>Configure IIS to enable real-time editing of the metabase. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.</li> <li>Right-click  (local computer), and then click Properties.

Note Replace  with the name of the computer that is running IIS.</li> <li>Click to select the Enable Direct Metabase Edit check box, and then click OK.</li></ol> </li> <li>Modify the Metabase.xml file. The metabase is a database that resides in memory on the computer that is running IIS. When the computer shuts down, all the metabase settings are written to a file that is named Metabase.bin. You can modify the Metabase.xml file to cause the Exchange Server-related virtual directories to be re-created in IIS when the Microsoft Exchange System Attendant service restarts. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Open the Metabase.xml by using a text editor such as Notepad. By default, the Metabase.xml file is located in the following folder:

%windir%\System32\Inetsrv

</li> <li>On the Edit menu, click Find.</li> <li>In the Find what box, type 61472, and then click Find Next to locate the following area in this file:

<IIsConfigObject Location=&quot;/LM/DS2MB/HighWaterMarks/{79F81D41-A652-4375-85F0-41A16037CC85}&quot;>

<Custom

Name=&quot;UnknownName_61472&quot;

ID=&quot;61472&quot;

Value=&quot;207778&quot;

Type=&quot;STRING&quot;

UserType=&quot;IIS_MD_UT_SERVER&quot;

Attributes=&quot;NO_ATTRIBUTES&quot;

/>

</li> <li>In this area of the Metabase.xml file, replace the Value entry with 0. For example, modify this area of the Metabase.xml file so that it appears similar to the following:

<IIsConfigObject Location=&quot;/LM/DS2MB/HighWaterMarks/{79F81D41-A652-4375-85F0-41A16037CC85}&quot;

>

<Custom

Name=&quot;UnknownName_61472&quot;

ID=&quot;61472&quot;

Value=&quot;0&quot;

Type=&quot;STRING&quot;

UserType=&quot;IIS_MD_UT_SERVER&quot;

Attributes=&quot;NO_ATTRIBUTES&quot;

/>

</li> <li>Save your changes to the Metabase.xml file. Then, quit Notepad.</li></ol>

Note You can also use the Metabase Editor tool (MetaEdit.exe) to modify this value in the metabase. For more information about how to obtain MetaEdit, click the following article number to view the article in the Microsoft Knowledge Base:

232068 How to download, install, and remove the IIS MetaEdit 2.2 utility

</li> <li>To restart the Microsoft Exchange System Attendant service, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, click Run, type services.msc, and then click OK.</li> <li>Right-click Microsoft Exchange System Attendant, and then click Restart.</li> <li>When you are prompted to restart the dependant Exchange Server services, click Yes.

Note When you restart the Microsoft Exchange System Attendant service, the Microsoft Exchange Information Store service is also restarted. In this scenario, your Exchange Server users lose connectivity to their Exchange Server mailboxes.</li></ol> </li> <li>Restore the default IIS setting to disable real-time editing of the metabase. To do this, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.</li> <li>Right-click  (local computer), and then click Properties.</li> <li>Click to clear the Enable Direct Metabase Edit check box, and then click OK.

The virtual directories are re-created. To verify that the virtual directories are re-created, start IIS Manager, and then view the Default Web site folder.

Important If the virtual directories are not re-created after 15 minutes, restart the computer.</li></ol>

Use a Web browser to verify that you can connect to your Outlook Web Access server. If you are also running other mobility services, verify that you can connect to these services by using an appropriate client.</li></ol>

Additional query words: XADM virtual directories

Keywords: kbhowto KB883380

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.