How to Edit the Windows Username Length on Windows 10 Pro Version 10.0.18363 Build 18363

Olakunle Olafiranye 1 Reputation point
2021-03-02T06:58:37.62+00:00

Dear Sir, How can I edit the Username Length of my PC Windows 10 Pro Version 10.0.18363 Build 18363 from the default 20 Characters to 50 Characters. I mean the Username Length Sir, not the Password Length. Thank you Sir, Olakunle Olafiranye.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,668 questions
Windows 10 Setup
Windows 10 Setup
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,908 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Teemo Tang 11,346 Reputation points
    2021-03-03T01:54:03.797+00:00

    Windows does not have that limit, that is a limit of the samaccountname. This attribute must be 20 characters or less to support earlier clients, and cannot contain any of these characters, we can't modify the length of the user's samAccountName.
    https://learn.microsoft.com/en-us/windows/win32/adschema/a-samaccountname
    But, you can use AD properties for user isolation rather than the username. If you created the user in ADUC with more than 20 characters, you were assigning a value to the "Name" of the user, which is the Common Name (the value of the cn attribute). This value can be up to 64 characters.
    Check this case:
    https://social.technet.microsoft.com/Forums/ie/en-US/2c4fa9be-4c11-4d28-9352-e71bb94d729f/change-the-default-windows-2008-r2-username-length-from-20?forum=winservergen

    -------------------------------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.