title: Changing Active Directory Password via Batch
body: <p>I'm trying to write a batch script to automatically change the password of an active directory user.</p>
  
  <p>The:  </p>
  
  <p><code>net user &lt;user&gt; /domain &lt;password&gt;</code>  </p>
  
  <p>where <code>&lt;user&gt;</code> &amp; <code>&lt;password&gt;</code> are a user and password of some user on the domain.</p>
  
  <p>Results in:   </p>
  
  <blockquote>
    <p>The request will be processed at a domain controller for
    domain .</p>
    
    <p>System error 5 has occurred.</p>
    
    <p>Access is denied.</p>
  </blockquote>
  
  <p><em>Edit:<br>
  I just found out that you need to be the <strong>domain controller</strong> to be able to run the command.<br>
  Is the a way to change a user's password without being the domain controller?</em></p>