|
About Windows 2000 server account names
|
|
| · | There are three identifiers for each user account on Windows 2000 server
|
| · | How names (identifiers) are created in MMC / "Active Directory Users and Computers"
|
| · | How Windows 2000 server names are set by AdmWin
|
| · | How to rename Windows 2000 server accounts with AdmWin
|
|
Identifier
|
Used
|
Comments
| |||||||
|
Common name (cn)
|
Active directory
|
| |||||||
|
SamAccountName
|
Logon name NT 4.0, W9x etc, but can also be used on Windows 2000
|
| |||||||
|
User Principal Name (UPN)
|
Windows 2000 logon name, or "Internet-style login name"
|
|
| · | In MMC, when manually creating an account, "Display name" is automatically created from "First name" + "Initials" + "Last name". (When you check access rights etc. in explorer, the "Display Name" is the name shown beside the logon name.)
|
| · | The display name is also used by MMC to create the common name "/cn=" for the account, meaning that you will get quite long common names.
|
| · | It is not possible to change the common name by changing "Display name" in MMC / "Active Directory Users and Computers" / properties - the only way is to right-click the account and choose rename.
|
| · | When you type in a "user Logon name in MMC" (first part of UPN), the "User logon name (pre-Windows 2000)" (SamAccountName) field is automatically copied from the UPN as you type (can be changed).
|
| · | In the end you'll end up with two or three different names for each account - one automatically created common name, one UPN and maybe one "User logon name (pre-Windows 2000)". And all of these must then be kept unique for each account. If you really want to consolidate namespaces; do not use the common names that MMC creates for you.
|
| · | When creating an account with AdmWin, the common name will be set to samAccountname. Use the user name generator to avoid duplicate names.
|
| · | The UPN can be set after the account is created. To avoid confusion it's best to set UPN to the same name as samAccountname and common name and just add your domain suffix. Notice: unlike when the UPN is entered in MMC / "Active Directory Users and Computers", the complete UPN most be specified, example: "bill@microsoft.com".
|
|
Name to change
|
AdmWin command
|
|
Common name
|
AD.Account.SetProperty, PropertyName=CommonName
|
|
SamAccountName
|
AD.Account.SetProperty, PropertyName=samAccountName or Account.Rename
|
|
User Principal Name (UPN)
|
AD.Account.SetProperty, PropertyName=UserPrincipalName
|