Jul 19, 2007 #1 GabeC Programmer Apr 17, 2001 245 US I am working with IIS 6.0 on Windows 2003. Using c#, how can I get a list of web sites on the server and additional information such as: IP address Port host header Thanks, Gabe
I am working with IIS 6.0 on Windows 2003. Using c#, how can I get a list of web sites on the server and additional information such as: IP address Port host header Thanks, Gabe
Jul 22, 2007 #2 phinoppix Programmer Jul 24, 2002 437 US Use DirectoryEntry to get the website metabase from IIS. A lot of samples over the internet, just search "DirectoryEntry IIS". Using the path "IIS://servername/W3SVC/", you should be able to iterate over the published websites/folders via the DirectoryEntry.Children property. Hope this helps Upvote 0 Downvote
Use DirectoryEntry to get the website metabase from IIS. A lot of samples over the internet, just search "DirectoryEntry IIS". Using the path "IIS://servername/W3SVC/", you should be able to iterate over the published websites/folders via the DirectoryEntry.Children property. Hope this helps