in reply to Accessing IIS metabase with Perl

Does anyone know of a module I can use to acccess/modify the IIS metabase through Perl?

I've seen this done with Win32::OLE, but haven't done it myself. The stumbling block is in getting your hands on a description of the Metabase object model. There's one out on MSDN somewhere. Once you have that, the Perl side is as straight-forward as any other use of Win32::OLE.

If you're running IIS 4.0 on NT, there are some examples.vbs files in C:\winnt\system32\inetsrv\adminsamples\ that modify the Metabase. You can reverse-engineer a small part of the object model from those.

Replies are listed 'Best First'.
Re: Re: Accessing IIS metabase with Perl
by Kanji (Parson) on May 04, 2001 at 01:31 UTC
    The stumbling block is in getting your hands on a description of the Metabase object model. There's one out on MSDN somewhere.

    Indeedy there is.

    Deciphering it is a whole 'nother matter, but having the VBS examples handy, perusing the ActiveState archives (the -admin and -user lists particularly), and plain ol' experimentation will get you far.

        --k.