Title: RE: how to control the setting of IIS 5.0 by using perl

Actually you can use Win32::OLE and the IIS ADSI Provider to query and modify IIS properties. I haven't played with it much but there are some good examples in Dave Roth's "Win32 Perl Scripting - Admin Handbook". Go Dave!

There are metabase schema difference between WinNT 4.0 and Windows 2000 IIS so don't expect code you write for NT 4.0 to automagically work on 2000. Dave also mentions this in his book.

Hope this helps.
Trevor Joerges
[EMAIL PROTECTED]

-----Original Message-----
From: Ed Sprenger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 19, 2002 11:08 AM
To: quhao
Cc: [EMAIL PROTECTED]
Subject: Re: how to control the setting of IIS 5.0 by using perl


IIS settings are controlled by the IIS Metabase, which is
similar to but not the same as the system registry. To my
knowledge, there is not a perl module to read and write to
the IIS metabase. If there is, I would be VERY interested in
it...

The easiest way to modify the metabase that I know of is
through VBscript, either from the shell or embedded in an
ASP file.

quhao wrote:
>
> HI, Everyone:
> I had tried to use perl to control the IIS's setting.
> here is my code:
>
> #!/usr/bin/perl -w
>
> use strict;
> use CGI qw(:all);
> require LWP::UserAgent;
>
> my $ua = LWP::UserAgent->new;
>
> my $url = 'http://192.168.0.1:2523/iiput.asp;
>
> my $request = HTTP::Request->new('GET', $url);
> $ua->credentials("192.168.0.1:2523", "iis",
> "administrator", "pass");
>
> my $response = $ua -> request($request);
> my $data = "$response->content;
>
> print header;
> i had tried to control the IIS 5.0 in this way:
> login the iis's "admin server" first, and then request the
> program in it.
>
> but i had meet two problems:
> 1. i can not login the iis 5.0.
> who can tell me the "realm" of iis 5.0?
> where to modify , set or find the "realm" of iis 5.0?
>
> or who can tell me the way to login IIS 5.0?
>
> 2.can i control the iis in this way?
> or who can tell me a easy way to control the IIS 5.0?
>
> i only need one function of IIS 5.0: i can modify the
> virtual servers' domain name, IP address and home way.
>
> thank for all
> quhao
>
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to