Get a Metabase key handle
When IIS starts, Metabase is loaded into memory so that Metabase's data has been affected until IIS is turned off. IIS Management Basic Tools and IMSADMINBASE interfaces and methods can be used to manage data in Metabase. You can access the keys in Metabase in the handle of the handle (Handles to Keys). The metadata_master_root_handle provided by IIS corresponds to the root directory of Metabase. You can use metadata_master_root_handle as a parameter, and set the read and write permissions you need to call these keys, call the OpenKey method to open a specific key. You can also use an existing handle that has been opened with OpenKey to open other keys.
Once you get a key handle, you can manipulate the key inlet with IIS Admin Base Object. You can also access the current open key by specifying the path information.
For an effective handle, you can use the getData method to get a Metabase data, or via the setData method to change a data. The GetAllData method allows your program to get the data subset of data connected to a key through a method call or the data subset of the key. When a data entry is no longer required, you can delete it by calling the deletedata method.
Also, for operational data entries, you can add, delete, or move a key from a path to another. Use the AddKey method to join the key to remove the keys with the DeleteKey method. Use the CopyKey method to copy or move a key and all of its sub-keys and data items.
Translation: This article is translated from the online MSDN
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iisref/html/psdk/asp/abgu1w0x.asp
The above link does not directly lead to this article, but you can quickly find this article soon. The reason why this article is translated is an accidental "opportunity" to use the program to change the setting of IIS. But I didn't end this demand because I use Microsoft's sample scripts to access Metabase results caused IIS crash (or "under get out of class"), and finally have to reload the total operating system, prove that direct access Metabase is quite dangerous. But if the boss persists, it can still be tried in the case of being fully prepared. Metabase is a Metabase.bin file in% windows% / system32 / inetsrv / directory, which has a Metaback directory under the folder. You can back up this Metabase.bin before operation.