Programmatically Starting and Stopping FTP Sites in IIS 7 and IIS 8

Posted by The Official Microsoft IIS Site on ASP.net Weblogs See other posts from ASP.net Weblogs or by The Official Microsoft IIS Site
Published on Wed, 03 Oct 2012 22:57:25 GMT Indexed on 2012/10/04 3:38 UTC
Read the original article Hit count: 471

Filed under:
|
|
I was recently contacted by someone who was trying to use Windows Management Instrumentation (WMI) code to stop and restart FTP websites by using code that he had written for IIS 6.0; his code was something similar to the following: Option Explicit On Error Resume Next Dim objWMIService, colItems, objItem ' Attach to the IIS service. Set objWMIService = GetObject( "winmgmts:\root\microsoftiisv2" ) ' Retrieve the collection of FTP sites. Set colItems = objWMIService.ExecQuery( "Select...(read more)

© ASP.net Weblogs or respective owner

Related posts about ftp

Related posts about iis