PC Review


Reply
Thread Tools Rate Thread

Getting info from groups

 
 
systemtek
Guest
Posts: n/a
 
      17th Aug 2007
Hi All,

We have some groups that have say 50 or so members in them, the
members are also individual contacts as well.

They are dynamic distribution groups. Membership to each group is
based on the "office" field, obviously different staff in different
places etc.

Is there a way to pull ALL details for a given field into a text
file ? i.e some how lets say based on the word LONDON in the "office"
filed and put all them people in a text file along with all the
details of the contact, e-mail address etc etc ? I have seen similar
scripts but not this one.

Thanks

 
Reply With Quote
 
 
 
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a
 
      18th Aug 2007
If you have seen similar then change the parameters to allow for what you
want.

The link below has how to get started with scripting as well as examples,
from which you should be able to modify for your specific requirements.
http://www.microsoft.com/technet/scr...r/default.mspx

You may also want to post this in the script NewsGroup.
microsoft.public.windows.server.scripting


You could also check out Richard Mueller's website, which has quite a few
examples.
http://www.rlmueller.net

--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.

"systemtek" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi All,
>
> We have some groups that have say 50 or so members in them, the
> members are also individual contacts as well.
>
> They are dynamic distribution groups. Membership to each group is
> based on the "office" field, obviously different staff in different
> places etc.
>
> Is there a way to pull ALL details for a given field into a text
> file ? i.e some how lets say based on the word LONDON in the "office"
> filed and put all them people in a text file along with all the
> details of the contact, e-mail address etc etc ? I have seen similar
> scripts but not this one.
>
> Thanks
>



 
Reply With Quote
 
 
 
 
Richard Mueller [MVP]
Guest
Posts: n/a
 
      18th Aug 2007
You might be able to use ADO for this. You could use it to retrieve info on
all users with the string "LONDON" in the physicalDeliveryOfficeName
attribute. For these users you can retrieve the values of any specified
attributes. For details on using ADO, see this link:

http://www.rlmueller.net/ADOSearchTips.htm

Using the syntax in the link, your example filter could be:

strFilter = "(&(objectCategory=person)(objectClass=user)" _
& "(physicalDeliveryOfficeName=*london*))"

See this link for documentation on attribute names, corresponding to fields
in ADUC:

http://www.rlmueller.net/UserAttributes.htm

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--

"Paul Bergson [MVP-DS]" <pbergson@allete_nospam.com> wrote in message
news:%(E-Mail Removed)...
> If you have seen similar then change the parameters to allow for what you
> want.
>
> The link below has how to get started with scripting as well as examples,
> from which you should be able to modify for your specific requirements.
> http://www.microsoft.com/technet/scr...r/default.mspx
>
> You may also want to post this in the script NewsGroup.
> microsoft.public.windows.server.scripting
>
>
> You could also check out Richard Mueller's website, which has quite a few
> examples.
> http://www.rlmueller.net
>
> --
> Paul Bergson
> MVP - Directory Services
> MCT, MCSE, MCSA, Security+, BS CSci
> 2003, 2000 (Early Achiever), NT
>
> http://www.pbbergs.com
>
> Please no e-mails, any questions should be posted in the NewsGroup
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "systemtek" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hi All,
>>
>> We have some groups that have say 50 or so members in them, the
>> members are also individual contacts as well.
>>
>> They are dynamic distribution groups. Membership to each group is
>> based on the "office" field, obviously different staff in different
>> places etc.
>>
>> Is there a way to pull ALL details for a given field into a text
>> file ? i.e some how lets say based on the word LONDON in the "office"
>> filed and put all them people in a text file along with all the
>> details of the contact, e-mail address etc etc ? I have seen similar
>> scripts but not this one.
>>
>> Thanks
>>

>
>



 
Reply With Quote
 
Paul Bergson [MVP-DS]
Guest
Posts: n/a
 
      18th Aug 2007
Like I said, "Richard" is the Scripting GUY.

--
Paul Bergson
MVP - Directory Services
MCT, MCSE, MCSA, Security+, BS CSci
2003, 2000 (Early Achiever), NT

http://www.pbbergs.com

Please no e-mails, any questions should be posted in the NewsGroup
This posting is provided "AS IS" with no warranties, and confers no rights.

"Richard Mueller [MVP]" <rlmueller-(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> You might be able to use ADO for this. You could use it to retrieve info
> on all users with the string "LONDON" in the physicalDeliveryOfficeName
> attribute. For these users you can retrieve the values of any specified
> attributes. For details on using ADO, see this link:
>
> http://www.rlmueller.net/ADOSearchTips.htm
>
> Using the syntax in the link, your example filter could be:
>
> strFilter = "(&(objectCategory=person)(objectClass=user)" _
> & "(physicalDeliveryOfficeName=*london*))"
>
> See this link for documentation on attribute names, corresponding to
> fields in ADUC:
>
> http://www.rlmueller.net/UserAttributes.htm
>
> --
> Richard Mueller
> Microsoft MVP Scripting and ADSI
> Hilltop Lab - http://www.rlmueller.net
> --
>
> "Paul Bergson [MVP-DS]" <pbergson@allete_nospam.com> wrote in message
> news:%(E-Mail Removed)...
>> If you have seen similar then change the parameters to allow for what you
>> want.
>>
>> The link below has how to get started with scripting as well as examples,
>> from which you should be able to modify for your specific requirements.
>> http://www.microsoft.com/technet/scr...r/default.mspx
>>
>> You may also want to post this in the script NewsGroup.
>> microsoft.public.windows.server.scripting
>>
>>
>> You could also check out Richard Mueller's website, which has quite a few
>> examples.
>> http://www.rlmueller.net
>>
>> --
>> Paul Bergson
>> MVP - Directory Services
>> MCT, MCSE, MCSA, Security+, BS CSci
>> 2003, 2000 (Early Achiever), NT
>>
>> http://www.pbbergs.com
>>
>> Please no e-mails, any questions should be posted in the NewsGroup
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "systemtek" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Hi All,
>>>
>>> We have some groups that have say 50 or so members in them, the
>>> members are also individual contacts as well.
>>>
>>> They are dynamic distribution groups. Membership to each group is
>>> based on the "office" field, obviously different staff in different
>>> places etc.
>>>
>>> Is there a way to pull ALL details for a given field into a text
>>> file ? i.e some how lets say based on the word LONDON in the "office"
>>> filed and put all them people in a text file along with all the
>>> details of the contact, e-mail address etc etc ? I have seen similar
>>> scripts but not this one.
>>>
>>> Thanks
>>>

>>
>>

>
>



 
Reply With Quote
 
systemtek
Guest
Posts: n/a
 
      20th Aug 2007
Thanks for the replys will give that a try.

Duncan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
getting values from URL such as http://groups.google.co.uk/groups?q=parameters+url+asp.net&start=10&hl=en&lr=& anonymous Microsoft ASP .NET 1 8th May 2005 04:58 PM
Restricted Groups: "Member of" and add Domain Groups to local Groups Hansi Microsoft Windows 2000 Group Policy 1 5th Mar 2005 04:24 AM
can't add groups to groups? djc Windows XP Security 0 12th Aug 2004 02:43 PM
User Properties/Member Of/Select Groups - groups not listed =?Utf-8?B?QW5kcmV3IEZpdmlhbg==?= Windows XP General 0 27th Jan 2004 06:16 PM
Local Groups and Domain Groups toeknee Windows XP Security 2 10th Oct 2003 07:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:36 PM.