Solved

automated populate email address field in Active Directory

Posted on 2010-08-23
6
1,559 Views
Last Modified: 2012-05-10
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!
0
Comment
Question by:NoelMCM
6 Comments
 
LVL 10

Expert Comment

by:jorlando66
ID: 33502858
If you are running exchange you can do this through recipient policies en masse.
0
 
LVL 10

Accepted Solution

by:
dhruvarajp earned 500 total points
ID: 33502953
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
 

Author Comment

by:NoelMCM
ID: 33503025
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
Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

 

Author Comment

by:NoelMCM
ID: 33503132
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
 
LVL 11

Expert Comment

by:RickSheikh
ID: 33503741
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
 
LVL 10

Expert Comment

by:dhruvarajp
ID: 33732747
do it from the Email addresses tab
there you have options to define it the way you want
with a example
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now