Getting info from groups

S

systemtek

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
 
P

Paul Bergson [MVP-DS]

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/scriptcenter/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.
 
R

Richard Mueller [MVP]

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
 
P

Paul Bergson [MVP-DS]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top