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
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 (http://support.microsoft.com/kb/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
| 1. |
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 (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:
|
||||||||||||
|
2. |
Back up your IIS metabase. To do this, follow these steps:
|
||||||||||||
|
3. |
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:
|
||||||||||||
|
4. |
Quit IIS Manager. |
||||||||||||
|
5. |
Click Start, point to All Programs, point to IIS Resources, point to Metabase Explorer, and then click Metabase Explorer. |
||||||||||||
|
6. |
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. |
||||||||||||
|
7. |
Quit IIS Metabase Explorer. |
||||||||||||
|
8. |
Click Start, point to All Programs, point to Administrative Tools, and then click Services. |
||||||||||||
|
9. |
To restart the Microsoft Exchange System Attendant service, follow these steps:
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. |
||||||||||||
|
10. |
Reset the access permissions to Anonymous. To do this, follow these steps:
|
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
|
1. |
Back up your IIS Metabase. To do this, follow these steps:
|
||||||||||||
| 2. |
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:
|
||||||||||||
| 3. | Quit IIS Manager. | ||||||||||||
| 4. | Click Start, click Run, type cmd, and then press ENTER. | ||||||||||||
| 5. |
Change to the following folder. In this example, Drive is the hard disk drive where Windows is installed:
Drive:\inetpub\adminscripts |
||||||||||||
| 6. |
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. |
||||||||||||
| 7. |
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. |
||||||||||||
| 8. | Click Start, point to All Programs, point to Administrative Tools, and then click Services. | ||||||||||||
| 9. |
To restart the Microsoft Exchange System Attendant service, follow these steps:
|
||||||||||||
| 10. |
Reset the access permissions to Anonymous. To do this, follow these steps:
|
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.
|
1. |
Configure IIS to enable real-time editing of the metabase. To do this, follow these steps:
|
||||||||||
|
2. |
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:
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 (http://support.microsoft.com/kb/232068/) How to download, install, and remove the IIS MetaEdit 2.2 utility |
||||||||||
|
3. |
To restart the Microsoft Exchange System Attendant service, follow these steps:
|
||||||||||
|
4. |
Restore the default IIS setting to disable real-time editing of the metabase. To do this, follow these steps:
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. |
original post http://support.microsoft.com/kb/883380