Starting with Windows 2000, computer names of up to 63 characters are supported.

For backward compatibility reasons, the sAMAccountName is limited to a 15 character name followed by a $.

The ComputerCN.bat script retrieves the computer's Common Name, which contains all the characters, up to 63, that you entered when creating the computer.