Microsoft KB Archive/311626

= How to: Rename a Virtual Directory in IIS 6.0 =

Article ID: 311626

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Internet Information Services 6.0

-



This article was previously published under Q311626



SUMMARY
Important This article contains information about editing the metabase. Before you edit the metabase, verify that you have a backup copy that you can restore if a problem occurs. For information about how to do this, see the &quot;Configuration Backup/Restore&quot; Help topic in Microsoft Management Console (MMC).

In Internet Information Services (IIS) 6.0, the option to rename a virtual directory in the Internet Information Services Manager (ISM) is not available because of changes in the metabase architecture.



MORE INFORMATION
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.

A user with administrative rights can save changes to Metabase.xml if the IIS Admin service is stopped or if the Direct Metabase Edit feature has been enabled. To enable this feature:
 * 1) In the ISM, right-click the local computer name, and then click Properties.
 * 2) Click to select the Enable Direct Metabase Edit check box.

To rename a virtual directory in IIS 6.0:
 * 1) Open Metabase.xml in Notepad. The default location for Metabase.xml is C:\Windows\System32\Inetsrv.
 * 2) On the Edit menu, click Find, and then find the current virtual directory name.
 * 3) Edit the virtual directory name.
 * 4) Close Metabase.xml. When you are prompted, save the changes.
 * 5) In the IISM, right-click the local computer name, and then select All Tasks.
 * 6) On the All Tasks menu, click Save Configuration to Disk.

Note If you are renaming a newly created virtual directory, the virtual directory may not appear in Metabase.xml. It takes at least two minutes for the change to appear in the IISM if no other changes are pending. To see this immediately in the IISM, close and then reopen the IISM.

