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

x
?
Solved

Power Shell "Change Display Name"

Posted on 2010-11-15
3
Medium Priority
?
803 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 200 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 1800 total points
ID: 34137034
0
 

Author Closing Comment

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

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

How to deal with a specific error when using the Enable-RemoteMailbox cmdlet to create a mailbox in the cloud-based service, for an existing user in an on-premises Active Directory.
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
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…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

704 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