Solved

Power Shell "Change Display Name"

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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

A hard and fast method for reducing Active Directory Administrators members.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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