You have two options here. When you ran the script in KB277717, it changed
the Display Name but not the Relative Distinguished Name. You can add in the
Display Name to the columns shown in ADUC (View->Choose Columns), or you can
change the RDN.
To change the RDN, modify the script in 277717 to look like this:
<snip>
For each usr in oTargetOU
if instr(usr.SamAccountName, "$") = 0 then
vLast = usr.get("Sn")
vFirst = usr.get("GivenName")
strCN = "cn=" & vLast & "\, " & vFirst
Set objParent = GetObject(usr.Parent)
Set objNewUsr = objParent.MoveHere(usr.ADSPath,strCN)
end if
Next
</snip>
-----Original Message-----
From: Daniel Gilbert [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 30, 2003 8:18 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] User Display Question
OK, I followed KB250455. Opened ADUC, created new users and display in ADUC
MMC (main window) was correct, i.e. lastname, firstname. Users created
before KB250455 unchanged, i.e. firstname lastname.
Ran the script in KB277717 on the OU that contained users created before
KB250455 was run. Output (command prompt window) correctly identified users
in correct format, i.e. lastname, firstname.
Here is where I think things are going south, in the main ADUC window the
old users are still displayed as firstname lastname, but new users are
displayed as lastname, firstname.
Is it possible to change the way users in the main ADUC window are
displayed?? I mean can I retrofit the old users to display like new ones?
Dan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jorge de Almeida
Pinto
Sent: Tuesday, December 30, 2003 5:42 PM
To: '[EMAIL PROTECTED] '
Subject: RE: [ActiveDir] User Display Question
Hi,
Q250455 only applies for user accounts created after the change. User
accounts already created before the change remain as is. To change the
display name of those users (already created) also see Q277717
Regards,
Jorge
-----Original Message-----
From: Gilbert, Daniel L Mr ANOSC/FCBS
To: [EMAIL PROTECTED]
Sent: 12/31/2003 12:08 AM
Subject: [ActiveDir] User Display Question
To All:
If this issue has been covered before please point me in the right
direction.
I am attempting to change the default display of users in ADUC.
I did some research and found Q250455, which is titled "How to Change
Display Names in Active Directory". Followed this Q article and new users
created now display as: lastname, firstname.
Now my question, how do I make this change retroactive? Should all existing
users display change to lastname, firstname or do I need to run another
script to change their display as well?
Daniel L. Gilbert
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary material, confidential
information and/or be subject to legal privilege. It should not be copied,
disclosed to, retained or used by, any other party. If you are not an
intended recipient then please promptly delete this e-mail and any
attachment and all copies and inform the sender. Thank you.
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/