Microsoft has recently released Windows 2000 (Win2K) build 2072 to beta program participants. Win2K uses a beta of Microsoft Data Access Components (MDAC) 2.5. The version of MDAC shipping with build 2072 has a bug in the implementation of ActiveX Data Objects (ADOs). As a result, the ADO examples from the "An ADSI Primer" series might fail to work properly, returning only one record in the result set. If you encounter this problem, try removing any lines that begin with the code
adoCommand.Properties("Page Size") =
from the scripts. Another solution is using an earlier or later build of Win2K.
"An ADSI Primer, Part 5: Using ADO to Script Fast ADSI Searches," May 1999, mentioned that you can use ADO's database query technology on valid Active Directory Service Interfaces (ADSI) providers, including Windows NT. However, NT doesn't support ADO searches. As a result, Listing 2 in "An ADSI Primer, Part 5" doesn't work. The Win32 Scripting Journal apologizes for any inconvenience this error might have caused.