Rename Display Name
Hi All,
We would like to rename a huge number of users 's "Display Name" , is there a way to do this in
Exchange Management Shell??Thanks.
Example:
Existing display name:
user1(city1)
user2(city1)
user3(city1)
New display name
user1(city2)
user2(city2)
user3(city2)
Thanks in advance
Lau
March 20th, 2011 3:45am
Hi Lau,
there are two questions i your post.
1) you have to change the bahaviour of creating new accounts. Therefor you have cange the displayspecifier in the configuration patition of your Active Directory.
http://certcollection.org/forum/topic/54091-change-displayname-behaviour-in-active-directory/ should help.
2) You have to change the displayname of your existent users. on
http://www.faq-o-matic.net/2003/08/10/wie-kann-ich-meine-benutzer-als-nachname-vorname-anzeigen/ there is a vbscript that changes the displayname of existent users to surname, givenname.
regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2011 4:27am
Not sure with powershell off the top of my head but you can always use admodify.
Highlight multiple accounts go the the displayname field and enter %'samaccountname'%, - New York
Admodify download
http://admodify.codeplex.com/releases/view/6065James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
March 20th, 2011 10:20am
Is "city2" a constant, or will it vary from user to user? Is the value of "city" to be taken from the AD user object itself? Will you be changing the value of "city" on each user?
I haven't tested this, but you should be able to use this (or something like it) if the name of the city is already populated in the AD user object:
get-user -resultsize unlimited | foreach{$c = $_.city;$u = $_.samaccountname; $dspname = "$u($c)";set-user $_.distinguishedname -displayname $dspname}--- Rich Matheisen MCSE+I, Exchange MVP
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2011 2:03pm