>I think I would go about it a little differently, I would try to use
> the WMI provider for IIS to query IIS about the websites it hosts.
Hi Mike,
Many thanks for your reply and links - alas, not being that adept yet I
wasn't entirely sure what I was looking at. :o/
I have found out thus far that I could use DirectoryServices to query the
Active Directory, and IIS, but I haven't yet found an article that does what
I need, I've found a few that list the applications under a website, but not
websites under IIS if you know what I mean.
I'm already using some code to query the AD for nt user lookups, so was
hoping it might be similar (and thus I'd understand it!)...
Thanks again for your reply.
Regards
Rob
xhead - 24 Oct 2005 05:20 GMT
There's a ton of sample WMI queries included with PrimalScript, a
script editor tool you can download and run as a 45-day trial. Go to
www.primalscript.com and get any of the editions of PrimalScript there,
then look for the WMI Wizard when you get in there. The queries should
be usable inside .NET somehow.
Hey, I haven't done this particular thing either, but keep exploring
that IIS area in MSDN until you find what you need - with that and the
sample script code from PrimalScript, you oughta get there sooner or
later!
Mike
Rob Meade - 24 Oct 2005 05:48 GMT
> Hey, I haven't done this particular thing either, but keep exploring
> that IIS area in MSDN until you find what you need - with that and the
> sample script code from PrimalScript, you oughta get there sooner or
> later!
Cheers :o)
Rob
xhead - 24 Oct 2005 05:23 GMT
Oh, how about this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/8b7
799c1-cebc-4b11-b3d5-34ab7b728077.asp