Dump a particular field from a user profile in AD

Bud Guy

Senior member
Nov 4, 1999
235
0
0
What I am trying to do is take a groups members and dump all of their email addresses from their user profiles. Any easy way to do this?
 

spyordie007

Diamond Member
May 28, 2001
6,229
0
0
What do you mean from their user profiles?

You could script removing a user account's email addresses (AFAIK there is not a native way to do it, you would have to script it).

Or rather by dump do you mean display? You're going to have to do some clarification here.
 

spyordie007

Diamond Member
May 28, 2001
6,229
0
0
I know ldifde will pull AD objects by OU, but dont think it will pull them by group membership.
 

Bud Guy

Senior member
Nov 4, 1999
235
0
0
Basically what I'm looking for is to notify all the users of a specific gourp that a share location has changed. We populate the email field, so what I'm looking to do is to somehow export the email addresses from all of the users for a given group.
 

Woodie

Platinum Member
Mar 27, 2001
2,747
0
0
You should be able to script this fairly easily in VBScript:

Part 1:
Connect to the AD, request the GroupName, and have the query return the Members attribute.
Part 2:
Now, go through the list of members, and query the AD for each user, returning the mail attribute. Add the attribute to your output.