Windows 用户名最大长度
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/704891/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Windows Username maximum length
提问by crauscher
What is the maximum length of a Windows domain + username? That is, what is the legal limit for a domain/username in Windows?
Windows 域 + 用户名的最大长度是多少?也就是说,Windows 中域/用户名的法律限制是什么?
采纳答案by Andrea Girardi
Read this
读这个
for windows 2000: http://technet.microsoft.com/it-it/library/bb726984(en-us).aspx
对于 Windows 2000:http: //technet.microsoft.com/it-it/library/bb726984(en-us).aspx
for windows 2003: http://technet.microsoft.com/en-us/library/cc783323.aspx
对于 Windows 2003:http: //technet.microsoft.com/en-us/library/cc783323.aspx
回答by JohnTESlade
The maximum lengths are hash defined in lmcons.h. DNLEN is the maximum domain length and UNLEN is the maximum user name length.
最大长度是lmcons.h 中定义的哈希值。DNLEN 是最大域长度,UNLEN 是最大用户名长度。
In the version of this file I have on my XP machine (installed as part of Visual Studio 8), DNLEN = 15 and UNLEN = 256.
在我的 XP 机器上的这个文件的版本中(作为 Visual Studio 8 的一部分安装),DNLEN = 15 和 UNLEN = 256。
回答by Rowland Shaw
There is a constant UNLEN which is defined in Lmcons.h that defines the maximum length of a username
Lmcons.h 中定义了一个常量 UNLEN,用于定义用户名的最大长度
回答by Daniel Fisher lennybacon
compmgmt.msc allows usernames for local account at max with 20 characters. dsa.msc allows domain user names to be 256.
compmgmt.msc 允许最多 20 个字符的本地帐户用户名。dsa.msc 允许域用户名是 256。