Microsoft KB Archive/814925

= Visual Basic Procedure to Count the Members of a Group Returns a Value of 1,000 for All Groups with Over 1,000 Members =

Article ID: 814925

Article Last Modified on 2/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Service Pack 3
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Service Pack 1
 * Microsoft Windows 2000 Service Pack 3
 * Microsoft Windows 2000 Service Pack 2
 * Microsoft Windows 2000 Service Pack 1

-





SYMPTOMS
When you try to use the following Microsoft Visual Basic procedure to return the number of members of groups in your domain, for any group that contains more than 1,000 members, the result is 1000, where  is the name of the group whose members you want to count:

get adsgroup = getobject(&quot;LDAP://cn= &quot;)

wscript.echo adsGroup.Members.count



Service Pack Information
To resolve this problem, obtain the latest service pack for Microsoft Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

Hotfix Information
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Windows 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The Global version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

  Date         Time   Version           Size     File name ---  16-Feb-2003  15:30  5.0.2195.6613     124,176  Adsldp.dll 16-Feb-2003 15:30  5.0.2195.6601     130,832  Adsldpc.dll 21-Feb-2003 07:19  5.0.2195.6667      62,736  Adsmsext.dll 16-Feb-2003 15:30  5.0.2195.6660     377,616  Advapi32.dll 16-Feb-2003 15:30  5.0.2195.6611      49,936  Browser.dll 16-Feb-2003 15:30  5.0.2195.6663     135,952  Dnsapi.dll 16-Feb-2003 15:30  5.0.2195.6663      96,528  Dnsrslvr.dll 16-Feb-2003 15:30  5.0.2195.6661      46,352  Eventlog.dll 16-Feb-2003 15:30  5.0.2195.6627     148,240  Kdcsvc.dll 20-Feb-2003 15:11  5.0.2195.6666     204,560  Kerberos.dll 02-Dec-2002 18:09  5.0.2195.6621      71,888  Ksecdd.sys 24-Jan-2003 13:40  5.0.2195.6659     509,712  Lsasrv.dll 24-Jan-2003 13:41  5.0.2195.6659      33,552  Lsass.exe 05-Feb-2003 07:59  5.0.2195.6662     109,328  Msv1_0.dll 16-Feb-2003 15:30  5.0.2195.6601     312,592  Netapi32.dll 16-Feb-2003 15:30  5.0.2195.6627     360,720  Netlogon.dll 21-Feb-2003 07:19  5.0.2195.6666     929,552  Ntdsa.dll 21-Feb-2003 07:19  5.0.2195.6666     392,464  Samsrv.dll 16-Feb-2003 15:30  5.0.2195.6622     112,912  Scecli.dll 16-Feb-2003 15:30  5.0.2195.6625     305,936  Scesrv.dll 16-Feb-2003 15:30  5.0.2195.6601      51,472  W32time.dll 16-Aug-2002 04:32  5.0.2195.6601      57,104  W32tm.exe 21-Feb-2003 07:19  5.0.2195.6666     125,200  Wldap32.dll



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Microsoft Windows 2000 Service Pack 4.

Keywords: kbbug kbfix kbwin2000presp4fix kbqfe kbdirservices kbwin2ksp4fix kbhotfixserver KB814925

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.