---------- Forwarded message ---------- From: a b <[EMAIL PROTECTED]> Date: Feb 7, 2006 10:18 AM Subject: Win32::OLE for IIS To: beginners@perl.org, [EMAIL PROTECTED]
Hello all, > > I have one require to modify the properties of IIS runing on remote > machine. > i tried it with Win32::OLE module but unsuccessful > > my code :- > > use strict; > use Win32::OLE; > use Win32::OLE::Enum; > > Win32::OLE->Option(Warn => 3); > > my $hostname = 'myremotehost'; > my $rootkey ; > > my $Collection = Win32::OLE->GetObject("IIS://".$hostname."/w3svc"); > > > my $virts = Win32::OLE::Enum->new($Collection); > my @vhosts = $virts->All; > > foreach (@vhosts){ > print "$_\n"; > > } > > ---errror > > Win32::OLE(0.1703) error 0x800401e4: "Invalid syntax" > after character 0 in "IIS:" at testiis.pl line 23 > eval {...} called at testiis.pl line 23 > Can't call method "in" on an undefined value at testiis.pl line 24. > > > > > > Any body help me in resolving how to modify the properties of default > website of IIS running on remote machine > > > > Thanks. >