OLE Automation documentation for FTP service (on IIS)?


i'm working on else's scripts, kind me. have them working on machine, , lot of if had idea of doing - don't because use lot of ole interface create ftp sites , users. bit of code in i'm stuck 1 asking 'servercomments', mean? can point me proper documentation here?

here's snipped of perl script (adapted):

 

my $ftp_re = qr/^(?:ftp[ _\-]streaming|asfroot)$/i;;

my $ftpid = undef;

 

my $ftpobj = win32::ole->getobject("iis://localhost/msftpsvc");

return undef unless $ftpobj;

 

for $ftpsite (in $ftpobj) {

if ($ftpsite->{'class'} eq 'iisftpserver' &&

$ftpsite->{'servercomment'} =~ $ftp_re) {

$ftpid = $ftpsite->{'name'};

last;

}

}

return $ftpid;

it better ask here: http://forums.iis.net/

 


this posting provided "as is" no warranties or guarantees , , confers no rights.

microsoft student partner 2010 / 2011
microsoft certified professional
microsoft certified systems administrator: security
microsoft certified systems engineer: security
microsoft certified technology specialist: windows server 2008 active directory, configuration
microsoft certified technology specialist: windows server 2008 network infrastructure, configuration
microsoft certified technology specialist: windows server 2008 applications infrastructure, configuration
microsoft certified technology specialist: windows 7, configuring
microsoft certified professional: enterprise administrator



Windows Server  >  Windows Server General Forum



Comments

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

difference between wuauclt1.exe and wuauclt.exe

Windows 2016 RDS event 1306 Connection Broker Client failed to redirect the user... Error: NULL