in reply to Manipulating IIS Metabase with Perl
You can find sample code for editing the metabase floating around PerlMonks, the ActiveState mailing lists, and Dave Roth's website.
--k.