Beware of the ADSI 2.5 Beta 1 Bug

Active Directory Service Interfaces (ADSI) 2.5 beta doesn't interpret the intIndex value to the IADsPropertyList's Item method as a valid integer. Here's a workaround to this bug.

1 Min Read
ITPro Today logo

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.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like