title: How to grant a user 'log on as a service' rights programmatically
body: <p>I created a new user using the Windows 7 command line:</p>
  
  <pre><code>net user password /add
  </code></pre>
  
  <p>I want to use this user to start a newly-created service. However, it's not possible due to lack of "log on as a service" rights.</p>
  
  <p>Is there a way to grant permissions to this user programmatically or by using the command line?</p>