May 19, 2004


Let’s say you have an old server, server1. You replace it with a shiny new Windows 2003 server, server2. You move all the files and services to the new server, and shut the old server off. And then you have to visit each workstation, individually, and change all their references to look to server2, because server1 is now dead, right? Not necessarily.

If you have a DNS server, you can simply create an entry for server1 and point it to server2’s IP address. This will work for many services, such as if server2 is an e-mail and web server. But what if server2 is a file server? You can try to connect to \\server1\c, and you’d think it would redirect you to server2, but it doesn’t. Instead you get some obscure error about multiple names on the network. What is going on?

That’s when you have to find out about the OptionalNames registry entry. If you navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters, then create the OptionalNames value, you can enter a list of names. Restart the computer, and the server will then respond to any of the names you listed. So your computer can be named server2, but with DNS and OptionalNames set up properly, your users can access it through \\server1\c. Or \\files\c. Or \\pookydoo\c. Or whatever you want, without affecting the actual name of the server. Because changing the name of a server, especially if it’s a domain controller, and especially especially if it’s an Exchange server, is a huge pain. As I found out last weekend. So using OptionalNames can save you that grief, as well as the massive trip to all the workstations.

Of course, if you’re using DFS, that’s all obsolete. But we won’t we getting into that today.

Filed under The Computer Vet Weblog

Comments (4)

Comments RSS - Trackback - Write Comment

  1. Scott Schrantz says:

    Sorry, I left out the part where a few weeks later the aliases stop working, and you have to stay in the office until 10pm to remap all the drives on all the workstations.


    Posted June 8, 2004 @ 9:47 pm
  2. Hugues says:

    Hello, I’ve the same problem that you described here :

    Did you found a way to fix it ?


    Posted June 23, 2004 @ 2:32 am
  3. Scott Schrantz says:

    Actually, I didn’t have to do anything. I switched everyone over to DFS, and a couple of weeks later the OptionalNames was working again. No idea why it stopped, or why it started up again.

    Posted June 23, 2004 @ 1:11 pm
  4. Steve says:

    You may also need to set the DisableStrictNameChecking DWORD value to 1.

    Posted July 6, 2004 @ 4:31 am

Write Comment