Udostępnij za pośrednictwem


Enabling Edit-While-Running in IIS 6.0

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

Enabling metabase edit-while-running requires that the metabase history feature is enabled and set to a value of at least 10. The second procedure below requires IIS to be restarted. Restarting IIS stops all sites for a short time. To enable direct metabase edit without interruption of service, use the first procedure below.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

Procedures

To enable metabase edit-while-running using IIS Manager

  1. In IIS Manager, right-click the local computer, and then click Properties.

  2. Select the Enable Direct Metabase Edit check box.

Important

You must be a member of the Administrators group on the local computer to run scripts and executables. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run your script or executable as an administrator. At a command prompt, type runas /profile /user:MyComputer</STRONG>Administrator cmd to open a command window with administrator rights and then type cscript.exe ScriptName (include the script's full path and any known parameters).

To enable metabase edit-while-running from the command line

  1. From the Start menu, click Run.

  2. In the Open box, type cmd, and click OK.

  3. At the command prompt, type iisreset /stop, and press ENTER. Leave the command window open.

Open the MetaBase.xml file with a plain text editor. By default, the MetaBase.xml file is located in the systemroot\system32\inetsrv directory.

Important

All text within MetaBase.xml is case sensitive.

  1. In the IIsComputer node, change the value of the EnableEditWhileRunning property from 0 (FALSE) to 1 (TRUE). The change should look as follows:

    <IIsComputer Location ="/LM"

    EnableEditWhileRunning="1"

    EnableHistory="1"

    MaxBandwidth="4294967295"

    MaxHistoryFiles="10">

  2. Save changes to the MetaBase.xml file.

  3. At the command prompt, type iisreset /start, and press ENTER.