Saturday, May 24, 2008

How to Define multiple NetBIOS names for a machine

Define multiple NetBIOS names for a machine.

This would be useful if, for instance, you wanted to migrate a number of shares to a different machine and rather than having to switch all clients to the new machine instantly you could define the new machine to also answer to the old machines NetBIOS name and then slowly migrate the machines. To define extra names for a machine perform the following:

  1. Start the registry editor (regedt32.exe)
  2. Move to HKEY_Local_Machine\System\CurrentControlSet\Services\LanmanServer\Parameters
  3. From the Edit menu select "Add Value"
  4. Set the type to REG_SZ is you want one extra name or REG_MULTI_SZ if you want more than one and enter a name of OptionalNames. Click OK
  5. You will then be prompted for a value. Enter the other name (or names if type REG_MULTI_SZ, one on each line) you want it to be known as and click OK.
  6. Close the registry editor
  7. Reboot the machine
  8. There may be a WINS resolution problem. The entries for the additional NetBIOS names will have been dynamically added to the WINS database complete with IP number. However, a "real" server machine in the WINS dbase normally has three WINS entries, 00h, 03h and 20h. Your aliases may only have one, 03h. Therefore you may need to add static entries for the additional NetBIOS names, which created all three entries. You should now be able to ping by NetBIOS name.

1 comment:

  1. many thanks! really useful article for me

    btw I have found that reboot may be unrequired
    new names become working if restart 3 services:

    net stop Browser /y
    net stop LanmanWorkstation /y
    net stop LanmanServer /y
    net start LanmanServer /y
    net start LanmanWorkstation /y
    net start Browser /y

    (works on windows 7)

    ReplyDelete

 
Site Meter