Article ID: 142691 - Last Review: February 21, 2007 - Revision: 2.2

Use of "&" Symbol in Server Names Causes Logon Scripts to Fail

This article was previously published under Q142691

Expand all | Collapse all

SYMPTOMS

When you install a Domain Controller with the ampersand character (&) in the server name, Microsoft Windows NT clients cannot process logon scripts. You may see a command shell opened with an error message that the specified file was not found.

Additional symptoms include the inability to map network drives from a command prompt. For example, net view \\server&name will fail with the following errors:
System error 53 has occurred. The network path was not found.


-and-

The name specified is not recognized as an internal or external command, operable program or batch file.


If, however, you encapsulate the \\server&name in quotes, the command will process correctly.

CAUSE

The ampersand is a logical continuation operator within the Windows NT default command interpreter, Cmd.exe. This is why the second error message is generated in the above example of the net view \\server&name.

For example, type "notepad&write" or "notepad&wordpad" at a Cmd.exe shell under Windows NT, and Windows NT will open Notepad; when it closes, Windows NT will open Write or WordPad.

WORKAROUND

Rename the server to a name that does not contain special characters.

APPLIES TO
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional Edition
  • Microsoft Windows NT Server 3.51
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 3.51
  • Microsoft Windows NT Workstation 4.0 Developer Edition
Keywords: 
kbnetwork kbprb KB142691
 

Article Translations