Solved

Power Shell "Change Display Name"

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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

The following article is intended as a guide to using PowerShell as a more versatile and reliable form of application detection in SCCM.
A recent project that involved parsing Tableau Desktop and Server log files to extract reusable user queries for use in other systems. I chose to use PowerShell to gather the data, and SharePoint to present it...
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

680 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