Solved

Power Shell "Change Display Name"

Posted on 2010-11-15
3
800 Views
Last Modified: 2012-05-10
We currently have about 500 users in Active Directory with a user name that starts with their year joined and their surname. Also against each account is their Last name and First name. The display name for the user is the username (UniqueID). I was wondering if there is an ideal script out there that can easily change the display name to
First Name SPACE Last Name

It would be a lot easer to do if it was done by script rather than going through each individual one and do it manually.

Does anyone know the magic script to make this happen?
0
Comment
Question by:alumwell
[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
3 Comments
 
LVL 27

Assisted Solution

by:KenMcF
KenMcF earned 50 total points
ID: 34136642
You can use the quest AD cmdlets

note: this is not tested so test in dev first.

If you have 2008R2 I can show an example using the MS AD cmdlets if needed.

$users = get-qaduser -searchroot "OU=AllUsers,DC=Domain,DC=Local"
foreach ($User in $users){
set-qaduser $user.dn -Displayname "$($user.FirstName) $($user.LastName)"
}

Open in new window

0
 
LVL 24

Accepted Solution

by:
Awinish earned 450 total points
ID: 34137034
0
 

Author Closing Comment

by:alumwell
ID: 34143791
That software was perfect. Much easier than using powershell
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
Let's recap what we learned from yesterday's Skyport Systems webinar.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…

623 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