thread184-967331 asked the original question. I need an answer.
I want to store the users email address in my OWN table.
Using code from another thread, I ge most of the info I need:
lc_domain = "DOMAIN"
lc_primary_domain_controller = Getobject("WinNT://" + lc_domain)
For Each User In lc_primary_domain_controller
IF User.Class = 'User'
Insert INTO &lc_cursor (username,fullname,descr,Class,;
accdisable,acclocked,profile, loginscrpt,Homedir) ;
Values (User.Name,user.fullname,User.description,User.Class,User.AccountDisabled,;
User.IsAccountLocked,User.Profile,User.loginscript,User.Homedirectory)
ENDIF
Next
How can I modify this code to get the users email address info. Assume they have exchange server.
I want to store the users email address in my OWN table.
Using code from another thread, I ge most of the info I need:
lc_domain = "DOMAIN"
lc_primary_domain_controller = Getobject("WinNT://" + lc_domain)
For Each User In lc_primary_domain_controller
IF User.Class = 'User'
Insert INTO &lc_cursor (username,fullname,descr,Class,;
accdisable,acclocked,profile, loginscrpt,Homedir) ;
Values (User.Name,user.fullname,User.description,User.Class,User.AccountDisabled,;
User.IsAccountLocked,User.Profile,User.loginscript,User.Homedirectory)
ENDIF
Next
How can I modify this code to get the users email address info. Assume they have exchange server.