Beware of the ADSI 2.5 Beta 1 Bug

Active Directory Service Interfaces (ADSI) 2.5 beta 1 has a bug in it. This version doesn't interpret the intIndex value to the IADsPropertyList's Item method as a valid integer. Instead, the Item method reads the intIndex value as a variant. Therefore, you must use Visual Basic Script's (VBScript's) CInt() function to explicitly convert the variant type to an integer for ADSI to accept it. After Microsoft fixes the bug ADSI 2.5 beta 1, you won't need to use the Clnt( ) function in this script.

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.