[This is preliminary documentation and subject to change]
This procedure illustrates how to change the default location of the MetaBase.XML file and/or change the name of the file that IIS looks for instead of the MetaBase.XML file when IIS starts.
From a command prompt window type the following command to stop the IISAdmin service:
net stop iisadmin /y
If you are creating a new location for the MetaBase.XML file then go to step 2. Otherwise go to step 3.
Important
It is recommended that you copy the
MetaBase.XML and MBSchema.XML files as well as the history folder
(found in %windir%\system32\inetsrv\by default), as well as
the files within the history folder, to the new folder.
Otherwise a default MetaBase.XML and blank MBSchema.XML file will
be created when IIS is restarted, and the history files will not be
available for edit while running.
If you are not renaming the MetaBase.XML file then go to step 4.
Important
The name MetadataFile is case
sensitive.
Example 1: If you want to store the metabase file in a folder
called metadata on drive d, you would type the following:
d:\MetaData\MetaBase.XML
Example 2: You want to store the metabase file in a folder called
metadata on drive d and you have renamed the MetaBase.XML file to
MySecretFile.XML in step 3, you would type the following:
d:\MetaData\MySecretFile.XML
Note
Changes to the registry are not detected by
IIS until IIS is restarted.
From a command prompt window type the following command to restart the IISAdmin service:
net start iisadmin /y
From a command prompt window type the following command to restart the World Wide Web Publishing service:
net start w3svc
Additionally, if have previously installed additional services related to IIS such as the FTP Publishing service, Network News Transport Protocol service, or the Simple Mail Transport Protocol service, then these services must also be restarted. These services can be restarted using the Windows Computer Management console or from the command line. For information about starting services using Computer Management console, search for "using services" in the Windows XP online help.
From a command prompt window type the following command to restart the FTP Publishing service:
net start msftpsvc
From a command prompt window type the following command to restart the Simple Mail Transport Protocol service:
net start smptsvc
From a command prompt window type the following command to restart the Network News Transport Protocol service:
net start nntpsvc
Related Topics
"Regedit" in the Windows online help."using services" in the
Windows online help.