Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can I list available ADSI (Active Directory Service Interfaces) service providers?

On StackOverflow no one knows, so they advised me to ask here.

share|improve this question
    
What do you mean by list them? –  Zoredache Aug 6 '10 at 20:52
    
think your question is self answering in this case, the list is the list as far as I can tell. –  tony roth Aug 6 '10 at 20:52
    
@Zoredache I mean: How to get a list of available service providers on a server? (How to write a script that will do that?) –  TN. Aug 6 '10 at 20:57
    
@tony The page contains a service providers that are implemented by Microsoft, but there can be more (e.g. 3rd party) service providers installed on a server. –  TN. Aug 6 '10 at 20:59
add comment

2 Answers

up vote 4 down vote accepted

this works, googled "script list of adsi providers"

WScript.Echo( listProviders() );

function listProviders()
{
    var list = "ADSI Providers on this machine\n" );
    list    += "==============================\n" );

    var ads = GetObject( "ADs:" );

    var e = new Enumerator( ads );
    for( ; !e.atEnd(); e.moveNext() )
    {
        var mem = e.item();
        list += mem.Name + "\n";    
    }
    return( list );
}
share|improve this answer
add comment

Look at KB-233023 How To Find All ADSI Providers on a System
There you can find c++ version to get the list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.