We have a home brew installer (written in VB6) that enumerates websites on a server using the IIS metabase (IIS://localhost/w3svc). We do not have the option to install the legacy support for this functionality. Is there any other way to get this information?
Is it stored in the registry?
IIS 6 Management Compatibilities features/role services must be enabled for such old kind of queries to work, unless you utilize IIS 7's new system, http://learn.iis.net/page.aspx/265/get-to-know-the-iis-wmi-provider-using-cim-studio/
Obviously those information are also available from IIS 7's configuration file (applicationHost.config), but parsing XML on your own is another challenge, http://technet.microsoft.com/en-us/library/cc754617%28v=ws.10%29.aspx
Lex Li
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
Marked as answer by Leo Tang - MSFT on Apr 23, 2012 12:52 AM
There are some articles to get you started, http://learn.iis.net/page.aspx/165/how-to-use-microsoftwebadministration/ and http://msdn.microsoft.com/en-us/library/microsoft.web.administration(v=vs.90).aspx
Lex Li
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
monoliths
29 Posts
VB6 & IIS7+
Apr 13, 2012 01:42 PM|LINK
lextm
4490 Posts
Re: VB6 & IIS7+
Apr 14, 2012 01:53 AM|LINK
IIS 6 Management Compatibilities features/role services must be enabled for such old kind of queries to work, unless you utilize IIS 7's new system, http://learn.iis.net/page.aspx/265/get-to-know-the-iis-wmi-provider-using-cim-studio/
Obviously those information are also available from IIS 7's configuration file (applicationHost.config), but parsing XML on your own is another challenge, http://technet.microsoft.com/en-us/library/cc754617%28v=ws.10%29.aspx
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
monoliths
29 Posts
Re: VB6 & IIS7+
Apr 20, 2012 04:33 PM|LINK
lextm
4490 Posts
Re: VB6 & IIS7+
Apr 23, 2012 03:14 AM|LINK
http://lextm.com
---------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.