Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Update User Profile in AD

Posted on 2010-09-20
3
Medium Priority
?
306 Views
Last Modified: 2012-06-21
We have Windows 2003 Active Directory Infrastructure.
The Helpdesk or to say the ID management team creates / updates user accounts.
The issue with what they are doing or to say how they are doing is that it is causing following issues:

1) When a name change is done for a user, as per the exchange policy the SMTP address also gets updated. However, the email address field in the General tab does not gets updated with the information of Primary SMTP address. With this missing information, the Officle address book does not gets updated and we see such enteirs in OALGen logs:
OALGen will skip user entry 'Michael Griffin' in address list '\Global Address List' because the SMTP address '' is invalid.
I am looking for a script which can be executed to update the Primary SMTP address in the email field of the General Tab for the User account properties.

2) When the helpdesk is creating the account, they are not updating the user display name properly and leave user full Name as their acocunt name. So when I look up for an individual say fo rexample Michael Griffin, i will get the result as "GriffinMi" which is the LAN account name. I want the display names of the users to be reflected correctly in AD.
I am looking for a script which can go and update user Full Name as their Display name in AD.

Please suggest and help
0
Comment
Question by:amku03
[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
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
grantsewell earned 2000 total points
ID: 33718098
You can use an LDAP script to do all of these items. VBScript or PowerShell will most likely be the most common. This EE Answer can probably give you a few ideas:

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_23414946.html

If you're in an Exchange environment, the SMTP address should be updated automatically after the change is made there.

It sounds like you need to work with your Help Desk to make sure they are correctly updating the users to meet your needs.
0
 

Author Comment

by:amku03
ID: 33719261
the script mentioned int the post is looking for a text file data.
I donot want to export data from AD and then put it in csv and run teh script.
i am looking for the script to update the Full Name of the user account as entered in the Display name field.
0
 
LVL 7

Expert Comment

by:grantsewell
ID: 33719277
You can use that script as a source. If your select is the entire director, you can have your query search for *=sAMAccountName and run a DO WHILE loop.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

722 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