title: A bit more challenging - Batch script to add domain user to local administrator group Windows 7
body: <p>I would like to write a script that will add a domain user to the local administrator group.
  I already tried </p>
  
  <pre><code>NET LOCALGROUP Administrators "domain\domainuser" /ADD
  </code></pre>
  
  <p>but I get the Access Denied error.</p>
  
  <p>The problem is that if I want to run it as domain user, it does not have local admin rights, and if as local admin, it does not have access to the domain names. (I don't want to use domain admin)</p>
  
  <p>If I manually right click the <em>computer</em> icon, than <em>manage</em>, I type in the computer name/local admin user/pass, than in <em>Local Users and Groups</em> -> <em>Groups</em> folder I want to add user to <em>Administrators</em>, I am prompted to log in again. If I log in than with a domain user, it works.</p>
  
  <p>My question is, if it is possible to do the same (or something similar) with batch script?</p>