Page 1 of 1 1
Topic Options
#184468 - 2008-01-08 07:49 PM Script to Pull Active Emails out of Exchange / Active Directory
Indigoseth Offline
Getting the hang of it

Registered: 2007-11-16
Posts: 78
Hi all,

I was hoping to rely on your expertise in writing this script. I have most of what i need finished. I am however puzzled on how i can retrieve an active email address from active directory.

Any Ideas.

Indigo

Top
#184469 - 2008-01-08 08:41 PM Re: Script to Pull Active Emails out of Exchange / Active Directory [Re: Indigoseth]
Mart Moderator Offline
KiX Supporter
*****

Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
Borrowed from the thread below.

 Code:
$objSysInfo = CreateObject("ADSystemInfo")
$strUser 	= $objSysInfo.UserName
$objUser	= GetObject("LDAP://" + $strUser)
 
$strMail 	= $objUser.mail


http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=179911
_________________________
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 836 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.047 seconds in which 0.023 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