title: Using a windows batch file to create local users?
body: <p>I need to create a list of local users that are sequential on Windows Server 2003.</p>
  
  <p>Using ServerFault I was able to find out the proper commands to a) create a user and b) assign that user to a localgroup.</p>
  
  <p>My commands would be:</p>
  
  <pre><code>net user myUserName /random /add /comment:"9.13.2011" /expires:never /fullname:"My User Name" /passwordchg:no
  </code></pre>
  
  <p>Adding that user to 'Remote Desktop Users' group:</p>
  
  <pre><code>net localgroup "Remote Desktop Users" myUserName /add
  </code></pre>
  
  <p>The username would start at myUserName1 and would iterate up to myUserName100.</p>
  
  <p>Is it possible to use a windows batch (or cmd) file to iterate through these two commands to create my user list?</p>