views:

1648

answers:

3

How long is the maximium lenght of a windows username incl. domain?

domain\username

regards

+1  A: 

Read this

for 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

Andrea Girardi
+1  A: 

The maximum lengths are hash defined in lmcons.h. DNLEN is the maximum domain length and UNLEN is the maximum user name length.

In the version of this file I have on my XP machine (installed as part of Visual Studio 8), DNLEN = 15 and UNLEN = 256.

jtes0111
+1  A: 

There is a constant UNLEN which is defined in Lmcons.h that defines the maximum length of a username

Rowland Shaw