How long can a Windows computer name be?

Is there a limit to the number of allowed characters for Windows computer names? If so, what is the limit?


Solution 1:

According to MS KB, maximum length varies based on the name resolution protocol.


NetBIOS computer names:
Minimum name length
1 character.

Maximum name length
15 characters.


DNS computer names:
Minimum name length
2 characters.

Maximum name length
63 characters.