>>You don't say what version of IIS.
>>For IIS 7.0 check the Microsoft.Web.Administration namespace:
>>
http://msdn.microsoft.com/en-us/library/microsoft.web.administration.aspx>>Some simple examples here:http://learn.iis.net/page.aspx/165/how-to-use-microsoftwebadministration/
>>
>>If it's an earlier version there are a few options:
>>
http://msdn.microsoft.com/en-us/library/ms525885.aspx>>
http://msdn.microsoft.com/en-us/library/ms524505.aspx>
>Thanks, I have IIS 6.0 as I am running Windows Server 2003.
>
>From the documentation, it seems ADSI, WMI and ABO would be the ones to use. In all that, I saw that ABO was the recommended one. I am trying to identify the best one to use. As, I wouldn't want to start using an approach that would be already obsolete.
Hi,
No personal experience with any of those approaches but the main points seem to be:
(a) Both ADSI and WMI are using ABO under the covers.
(b) The link states WMI can *only* be used with IIS 6.0. But I don't think that's true - maybe they just mean it can't be used with versions *prior* to IIS 6.0. IAC probably irrelevant from your POV.
(c) There's nothing to indicate that you can use *any* of these methods with IIS7 so whichever you choose will have an obsolescence problem in that respect.
If you've used WMI or ADSI before I guess I'd just go with the one you're most comfortable with.....