How to Enable the Enable Direct Metabase Edit Feature in IIS Manager
Topic Last Modified: 2005-05-23
This procedure explains how to enable the Enable Direct Metabase Edit feature in IIS Manager. You must perform this procedure in order to edit the MetaBase.xml file in the IIS 6.0 metabase directly when IIS is running; otherwise the file remains open and locked when IIS is running.
Before you perform the procedure in this topic, consider the following:
Because the Active Directory-to-IIS metabase update is a one-way replication, it is a good idea to be careful when you modify settings in the IIS metabase directly. The metabase update service might overwrite any changed values for the SMTP virtual server during the next update cycle. It is recommended that you use Exchange System Manager to configure the SMTP service on an Exchange 2003 server and modify only those parameters that are not available in Exchange System Manager, such as the ConnectResponse setting.
|If you edit the metabase incorrectly, you could cause serious problems that could require you to reinstall your Exchange server. Microsoft cannot guarantee that you can solve problems that result from editing the IIS metabase incorrectly. You edit the metabase at your own risk. Make sure you have a valid backup copy of the metabase files before you apply any changes.|
In IIS Manager, right-click the server object, and then click Properties.
Select the Enable Direct Metabase Edit check box.
If you want to change parameters that are not available in Exchange System Manager, you can edit the metabase settings directly. For example, you can change the SMTP banner of your SMTP server by adding a value for the ConnectResponse property to the default SMTP virtual server's configuration object (<IIsSmtpServerLocation ="/LM/SmtpSvc/1">) to prevent disclosing Exchange-specific version information in SMTP communications, as follows:
<IIsSmtpServer Location ="/LM/SmtpSvc/1"
AdminACL="4963... ... ...a472"
If you find Notepad inconvenient, you can use Active Directory Service Interfaces (ADSI) instead to modify metabase settings. The following code block performs the same change to the SMTP banner. The following figure illustrates the modified SMTP banner.
' Get the configuration object for the default SMTP virtual server
' Configure the ConnectResponse setting
' Write the changed parameter into the metabase
For more information about how to access IIS metabase settings using ADSI, see Using ADSI to Configure IIS in the Microsoft Platform SDK.
Note: You must restart the IIS Admin service and all its dependent services, including the SMTP service, to save the changes. The SMTP service is designed to obtain changes to the system configuration automatically, without requiring a restart. But some modifications, such as changing the SMTP banner, might require a restart.