title: How to add a group with long name to local group from command prompt or batch file?
body: <p>When trying to add a global group with a name longer than 20 characters using <code>net.exe</code> I get an error saying that the syntax is incorrect, as follows:</p>
  
  <pre><code>C:\&gt;NET.EXE localgroup MyRemoteUsers "really-long-group-name-here" /ADD
  
  The syntax of this command is:
  
  NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
  groupname {/ADD [/COMMENT:"text"] | /DELETE}  [/DOMAIN]
  groupname name [...] {/ADD | /DELETE} [/DOMAIN]
  </code></pre>
  
  <p>This problem is <a href="http://support.microsoft.com/kb/324639" rel="noreferrer">documented by Microsoft here</a>.  I need this to work inside a standard .cmd batch file.  Is there a simple workaround?</p>