title: Is there a batch script that will set the 'Allow user to change password' to false?
body: <p>I have created a script that when you run it, it sets the 'password will never expire' on all accounts to false so the passwords will never expire. The script is as follows:</p>
  
  <pre><code>WMIC USERACCOUNT WHERE "Name='administrator'" SET PasswordExpires=FALSE
  </code></pre>
  
  <p>I was wondering if there was a script that would allow me to ensure that the 'Allow user to change password box was ticked as well but I was unable to do this. I have tried the following script lines:</p>
  
  <pre><code>WMIC USERACCOUNT WHERE "Name='administrator'" SET PasswordChange=FALSE
  
  WMIC USERACCOUNT WHERE "Name='administrator'" SET AllowPasswordChange=FALSE
  </code></pre>
  
  <p>Any help would be appreciated.</p>