Lesson 3: Changing Properties of the IIS Metabase
The following table compares the different ways you can change the properties of the IIS metabase.
Tool | Process | Advantages | Disadvantages |
---|---|---|---|
IIS Manager | Open the property sheets for a service, site, or virtual directory and change values. Changes take place immediately without a need to stop and start the server. | IIS Manager informs you if the a new value is invalid. | Using IIS Manager is tedious when frequently managing multiple machines. |
Metabase configuration file | In Notepad, open the metabase configuration file from its working location, systemroot\System32\Inetsrv\MetaBase.xml, and make changes. Save the file. A change notification is sent to the IIS server. |
You can change multiple properties or create new nodes in one instance without having to open and close multiple property sheets. | If a value is invalid, there is no warning. It is too easy to make a mistake. One typing mistake can bring down your entire server. Sometimes it is necessary to stop and start the server before the changes take place. |
Using WMI programmatically | Write an ASP page, a command-line script, or compile a program that uses WMI to access the metabase configuration file. Changes take place immediately without needing to stop and start the server. |
|
It can take a while to learn how to use WMI. In many cases, ADSI exhibits better performance than WMI. |
Using ADSI programmatically | Write an ASP page or a command-line script; or compile a program that uses ADSI to access the metabase configuration file. Changes take place immediately without a need to stop and start the server. | Programmatic administration is fast. You can change one property, or multiple properties on multiple machines across a network. | It can take a while to learn how to use each individual ADSI provider. |
CIM Studio |
|
Everything is within your view. The schema, the instances, and all properties are visible without having to click a different tab in a property sheet. | Using CIM Studio is tedious when frequently managing multiple machines. |
In the next module, we begin to write administration scripts using all the resources already discussed.
Related Topics
- To proceed to the next module in this tutorial, seeModule 3: Writing Administration Scripts that use WMI .