?
Solved

automated populate email address field in Active Directory

Posted on 2010-08-23
6
Medium Priority
?
1,706 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 2000 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
Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

 

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Auditing domain password hashes is a commonly overlooked but critical requirement to ensuring secure passwords practices are followed. Methods exist to extract hashes directly for a live domain however this article describes a process to extract u…
Let's recap what we learned from yesterday's Skyport Systems webinar.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
Suggested Courses

762 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