Solved

Power Shell "Change Display Name"

Posted on 2010-11-15
3
794 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
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

707 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

11 Experts available now in Live!

Get 1:1 Help Now