title: Password Policy Windows API
body: <p>Is there any API to work with Local and/or Global Password Policy (read/write policy settings)? </p>
  
  <p>I found there is a windows command:</p>
  
  <blockquote>
    <p>net accounts</p>
  </blockquote>
  
  <p>What API does it use to read the settings? Is it possible to change the settings programmatically under admin permissions?</p>