Results 1 to 3 of 3

Thread: List Active Directory Domains / DCs

  1. #1
    Join Date
    Nov 2005
    Posts
    19

    List Active Directory Domains / DCs

    Does anyone have a method created for displaying Active Directory Domains and Domain Controllers in an Installer project? Could you provide a high level way of doing this? I'm familiar with VBscript and ADSI but not The IS Install Script.

    Thanks,

    John

  2. #2
    Join Date
    Jul 2003
    Location
    Austin, TX
    Posts
    4,375
    Basically VBScript and InstallScript are very similar when using ADSI to perform LDAP queries. They both use CreateObject and GetObject along with standard COM calling conventions, and they both keep datatypes simple ( VBScipt = VARIANT where InstallScript is NUMBER or STRING ).

    The key difference is InstallScript lacks native collection enumeration. There is an example over on www.InstallSite.org that uses a C++ DLL and InstallScript wrapper function to provide collection enumeration so that won't be too big of a deal. There have been posts in this forum explaining how to use it.

    Here is an old thread where I show examples of ADSI WINNT Provider using both InstallScript and VBScript:

    http://community.installshield.com/s...ight=userflags

    Here is a link to InstallSite Collection Enumeration ( GetObject ForEach )

    http://www.installsite.org/pages/en/isp_misc.htm


    So basically once you know how to write LDAP queries and enumerate the results in InstallScript it's just a matter of figuring out what your query is.
    Christopher Painter
    ISWIX, LLC.
    Visit iswix.com for contact information

  3. #3
    Join Date
    Nov 2005
    Posts
    19
    Thanks Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •