GT
Wed Jul 20 08:34:16 CDT 2005
Excellent! Thank you VERY much :)
-GT
"Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
news:%23Mphd0QjFHA.2644@TK2MSFTNGP09.phx.gbl...
> Hi,
>
>
> Richard Mueller's "Document Large Group" script at
>
http://www.rlmueller.net/freecode3.htm
>
>
>
> GT wrote:
>
>> Found an explanation here:
>>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/enumerating_members_in_a_large_group.asp,
>> however they do not show a solution for vbscript.
>>
>> -GT
>> "GT" <DSS4u@+++nospam+++HOTMAIL.COM> wrote in message
>> news:e1jDe.4123$je2.554874@news20.bellglobal.com...
>>
>>>I'm trying to cycle through all the members of a large AD group, but it
>>>seems to hit some type of maximum at 1500. Below is the snippet of code:
>>>
>>>arrMemberOf = objGroup.GetEx("member")
>>>' Loop = For Each .... Next
>>> WScript.Echo "Members of Group " & strContainer
>>> For Each strMember in arrMemberOf
>>>' WScript.echo strmember
>>> Set objItem = GetObject("LDAP://" & strmember)
>>> strsAMAccountName = objItem.Get("sAMAccountName")
>>>' WScript.Echo "sAMAccountName: " & strsAMAccountName
>>><snip>
>>>
>>>Any ideas? Is 1500 the maximu number of elements in the array
>>>arrMemberOf?
>>>
>>>Thanks.
>>>
>>>(rookie VBS coder, go easy)
>>>
>>>-GT
>>>
>>>
>>
>>
>>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
>
http://www.microsoft.com/technet/scriptcenter/default.mspx