abdiel has asked for the wisdom of the Perl Monks concerning the following question:
#! perl -w use strict; use Win32::OLE; use Win32::OLE::Enum; Win32::OLE->Option(Warn => 3); my $hostname = shift; my $rootkey = shift; my $Collection = Win32::OLE->GetObject("IIS://$hostname/w3svc"); my $virts = Win32::OLE::Enum->new($Collection); my @vhosts = $virts->All; foreach (@vhosts){ print "$_\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Win32::OLE and IIS
by jehuni (Pilgrim) on Apr 19, 2002 at 11:44 UTC | |
|
Re: Win32::OLE and IIS
by ckohl1 (Hermit) on Apr 18, 2002 at 20:27 UTC | |
by abdiel (Monk) on Apr 18, 2002 at 20:33 UTC | |
|
Re: Win32::OLE and IIS
by simonflk (Pilgrim) on Apr 19, 2002 at 02:50 UTC |