Get the "Name" column in AD Users/computers to show Username and not full name
good morning,
i populated ad users using batch file dsadd commands. (created in excel , copied batch file) this worked great. when go active directory users , computers , go ous users stored, "name" column populated username. , how want it. however, if create new user, or copy 1 of template users, name field populated full name of user instead of username.
so, example, have user- bob smith. username bsmith. add him using dsadd command , shows in staff users ou expected. in "name" column, shows bsmith. great!
command used is:
dsadd user "cn=bsmith,ou=staffusers,ou=organisation,dc=domain,dc=internal" -samid bsmith -upn "bsmith@domain.internal" -fn "bob" -ln "smith" -desc "staff" -display "bob smith" -pwd changeme -mustchpwd yes -disabled no
have user, jane smith. username jsmith. add jane smith by creating new user object directly in ad users , computers. however, when view in ad users , computers, "name" column shows "jane smith" , not "jsmith".
can change when create new user in ad users , computers, username shown in name field instead of full name?
the name field in aduc displays relative distinguished name (rdn) of object. in case of user objects, rdn value of cn attribute (the common name of user). cannot changed. unfortunately, when create users in aduc, field labeled "full name" value of cn attribute, , automatically populated first , last name of user (unless change it). field labeled "pre-windows 2000 logon name" value of samaccountname attribute, called userid or username, since user logs on it.
if users show in aduc have cn equal samaccountname (pre-windows 2000 logon name), maybe solution rename "problem" users. script @ all users , if cn , samaccountname attributes don't match, rename user object match.
richard mueller - mvp directory services
Windows Server > Directory Services
Comments
Post a Comment