Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

Update User Profile in AD

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
amku03
Asked:
amku03
  • 2
1 Solution
 
grantsewellCommented:
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
 
amku03Author Commented:
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
 
grantsewellCommented:
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
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.

Join & Write a Comment

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now