NET.EXE /ADD command does not support names longer than 20 characters (324639)
The information in this article applies to:
- Microsoft Windows NT Server 4.0 Terminal Server Edition
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q324639 SYMPTOMS
When you use the NET.EXE command with the /ADD switch and long user or group names, this only redisplays the NET syntax. You receive no error message. Example:
C:\>NET.EXE localgroup MyRemoteUsers "REMOTE INTERACTIVE LOGON" /ADD
The syntax of this command is:
NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
The same action does work with the GUI Computer Management, Local Users and Groups Microsoft Management Console (MMC).
CAUSE
The NET.EXE command does not support names longer than 20 characters for reasons of backward compatibility with LAN Manager 2.0.
For additional information about this LAN Manager 2.0 limitation, click the following article number to view the article in the Microsoft Knowledge Base:
131417
Windows NT global groups are limited to 20 character names
RESOLUTION
If the graphical user interface (GUI) method cannot be used and a scripting method is required, use the Windows 2000 Resource Kit utility Cusrmgr.exe. Or, use VBScript, using an application programming interface (API) that supports names longer than 20 characters.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 11/3/2004 |
---|
Keywords: | kbprb KB324639 |
---|
|