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.