title: How do I create a new user in Windows with a user-data script on AWS?
body: <p>I never use Windows; so bear with me here. I'm trying to make this simple; all I want to do is create a new user, with a defined password, that I can use to RDP to my instance on AWS.</p>
  
  <p>I've put the following into a user-data script (And tried about 40 other different ways as well) to no avail.</p>
  
  <pre><code>&lt;powershell&gt;
  
  cmd.exe /c net user /add developer myP@ssworD1
  cmd.exe /c net localgroup administrators developer /add
  cmd.exe /c NET LOCALGROUP "Remote Desktop Users" developer /ADD
  
  &lt;/powershell&gt;
  </code></pre>
  
  <p>My end-goal here is that I want to use provision an AMI with Packer, which I believe is working - but I can never login with AWS' means of "Get Windows Password" as it never resolves.</p>
  
  <p>Any solution to get me past this step would be extremely helpful.</p>