Page 1 of 1 1
Topic Options
#206060 - 2012-10-24 01:44 PM get email from all members of a group in AD
Jlmartinez Offline
Getting the hang of it

Registered: 2008-05-20
Posts: 75
Loc: Sevilla, Spain
Hello! , I need a text file with all email address of members of a group in Active Directory...I´m trying do it with Groupmembers() and GetADUserProperties() UDF functions, but it only show me an error on GetADUserProperties() UDF function and I can´t to find it...

Break on
$users = groupmembers("DOMAIN", "GROUP")
For Each $user in $users
? getADuserproperties("Email", "$user")
Sleep 0.2
Next

Can you help me, please?? Thanks

Top
#206062 - 2012-10-24 03:43 PM Re: get email from all members of a group in AD [Re: Jlmartinez]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4563
Loc: USA
It may have something to do with the email address field being an array. Here is link to another UDF that never got published to the UDFs...

GetEmailAddresses()
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=188397#Post188397

The sample code is in the posted link and down below are the updated versions of the functions.

If I can find some time, I look it over again, and post at least the GetEmailAddresses to the UDFS. The Set version required modifying permsisions on the Exchange server and I have no desire to get into what it required to change them.

Top
#206065 - 2012-10-24 04:55 PM Re: get email from all members of a group in AD [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
LOL totally forgot about those.

In the end this project just died and was never brought back to live. Just one month later the company I worked for at that time stopped all business activities, fired all personnel and closed the doors because of the lack of customers and the shrinking need for printed media. Not so great at the time but looking back everything worked out just fine for me.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
#206067 - 2012-10-24 05:18 PM Re: get email from all members of a group in AD [Re: Mart]
Allen Administrator Offline
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4563
Loc: USA
Well, I don't know about you, but it sure doesn't seem like its been over 4 years since we were messing with that. I shake my head in disbelief when I look at the dates of some my posts.
Top
#206070 - 2012-10-25 12:59 AM Re: get email from all members of a group in AD [Re: Allen]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11629
Loc: CA
 Originally Posted By: Allen
Well, I don't know about you, but it sure doesn't seem like its been over 4 years since we were messing with that. I shake my head in disbelief when I look at the dates of some my posts.


ROFL - I hear ya Allen

But I suppose for many of us after being in the trenches for so long many of us have moved on to positions or technology that doesn't require as much scripting. But it looks like some are still heavily using it.

Top
#206072 - 2012-10-25 09:18 AM Re: get email from all members of a group in AD [Re: Allen]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
 Originally Posted By: Allen
Well, I don't know about you, but it sure doesn't seem like its been over 4 years since we were messing with that. I shake my head in disbelief when I look at the dates of some my posts.


LOL
Yep, I’ve been shaking my head until it hurts.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1441 anonymous users online.
Newest Members
batdk82, StuTheCoder, M_Moore, BeeEm, min_seow
17885 Registered Users

Generated in 0.057 seconds in which 0.026 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org