How To Set Multiple Names For One Computer

 

Some time you want to set 2 names to the same server, This can come handy if you upgrade or change server and need to keep the old share path for application requirements

First add Additional name for network share :

HKEY_Local_Machine\System\CurrentControlSet\Services\LanmanServer\Parameters

Add key REG_SZ is you want one extra name or REG_MULTI_SZ if you want more than one name for the server, The key name is : OptionalNames and under it add the second name you want.

Another think is to allow encryption types  for the share especially if you get error like :

Logon failure: Target account name is incorrect

Resolve this followig this steps on the server holdings the shares :

  1. In the Group Policy Management Console (GPMC), expand Computer Configuration, expand Windows Settings, expand Security Settings, expand Local Policies, and then select Security Options.
  2. Click to select the Network security: Configure encryption types allowed for Kerberos option.
  3. Click to select the Define these policy settings check box and all six check boxes for the encryption types.
  4. Click OK, and then close the GPMC.
  5. Reboot server.

More information on this here

 

Another way to do this, if you are running Windows Server, is to add alternate computer names to your new server (after your old servers are retired). This can be done easily by using the NETDOM COMPUTERNAME command.

This command, which works only for Windows Server, allows you to add more names to a computer, in addition to its primary names. You can see details on how to use the command at the TechNet page about Netdom Computername.

For instance, if the domain in the scenario example is contoso.local and the full FQDN for the file server was CFILE.contoso.local, you could add the other names with:

NETDOM COMPUTERNAME cfile /ADD file1.contoso.local
NETDOM COMPUTERNAME cfile /ADD file2.contoso.local
NETDOM COMPUTERNAME cfile /ADD file2.contoso.local
IPCONFIG /registerdns

The last command makes sure the alternate names are properly registered with your DNS server, where other computers in the domain will find it. To check all the names of the computer, primary and alternate, you can use the command:

NETDOM COMPUTERNAME cfile /ENUM

 


Good Luck

Leave a Reply

Your email address will not be published. Required fields are marked *