Article ID: 324639 - Last Review: March 2, 2009 - Revision: 6.0 NET.EXE /ADD command does not support names longer than 20 charactersThis 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]
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
(http://support.microsoft.com/kb/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. MORE INFORMATION
In the example in the "Symptoms" section of this article, use the following Cusrmgr.exe syntax: The following sample VBScript may be adapted and used as an additional workaround. It adds "Authenticated Users" to "Power Users" for the English and German version: APPLIES TO
| Article Translations
|
Back to the top
