automated populate email address field in Active Directory

Hi.

I have an OU with 800+ users in it and i need to populate the email address field with 'firstname.surname@domain.com'

I was hoping to use something similar to '%username%@domain.com' which does work in the email address field in AD but its not the username that i need. Tried using %givenname%.%sn%@domain.com but didn't work.

Has anyone just a similar command to populate this field before or can advise the best way to do this without having to input manually.

Cheers!
NoelMCMAsked:
Who is Participating?
 
dhruvarajpConnect With a Mentor Commented:
do this
http://www.msexchange.org/articles/ADModify-Change-Exchange-Specific-AD-User-Attributes.html 
use this tool to modofy the email addresses in bulk

you can get  admodify.net from codeplex.com or just google
Thank you
0
 
jorlando66Commented:
If you are running exchange you can do this through recipient policies en masse.
0
 
NoelMCMAuthor Commented:
Just to note and i should have mentioned in the first post. We are a Lotus Notes house so the email address field in AD will purely be for reporting purposes.

Not having Exchange will i still be able to use the admodify without any issues do you know?

Thanks for the quick responses by the way!!
0
Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

 
NoelMCMAuthor Commented:
Tried using ADModify but i still end up with the same issue in that i still have to type in what i want to appear. See attachment
ADmodify.JPG
0
 
RickSheikhCommented:
If you are open to using PowerShell with Quest Cmdlets, then below script may suffice for you.
get-qaduser -searchroot 'na.mydomain.int/users and groups' -email $null -firstname * -lastname * -sl 0 | foreach {
    $email = "{0}.{1}@{2}" -f $_.firstname,$_.lastname,$_.userprincipalname.split("@")[1]
   write-host $email
    #set-qaduser -identity $_ -email $email
}

Open in new window

0
 
dhruvarajpCommented:
do it from the Email addresses tab
there you have options to define it the way you want
with a example
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.