You need to specify a page size for your command object. If you don't
you only get back the first set of objects [I thought it was the first
1000, but maybe that changed somewhere] and that's it. 

Add:

$objADOcmd->Properties->{'Page Size'} = 1000;

And you should be good. Though I'm not familiar with the Size Limit
property so I don't know if that will cap the result set -- you might
want to lose it.

HTH,
-Shawn

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Deans, Glenn (SBS US)
Sent: Monday, February 19, 2007 10:36 AM
To: perl-win32-admin@listserv.ActiveState.com
Subject: Active Directory query limited to 2000 objects?


Hi all! I'm running into a problem when I query our domain. I'm trying
to enumerate a specific OU for the computers and I can only get 2000
objects back. I can't seem to find a property for this or a way to
change the limit. The 'Size Limit' property in line 21 has no effect and
I can't find a way to set 'MaxRecords', but I think the default for that
is unlimited. It's not a show stopper for this script, but it will be in
the future.

Am I missing something?

_______________________________________________
Perl-Win32-Admin mailing list
Perl-Win32-Admin@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to