title: Is there a way to change the password and auditing policy with a script?
body: <p>I am trying to write a script to change the password and auditing policy on a local machine as one would do through Group Policy editor. However, I have not found a way to change these settings through a batch script, whether by editing the registry or through specific commands (I especially looked into using secedit with <code>secedit /configure /db secedit.sdb /cfg "TemplateFile.inf"</code> to create the database and <code>secedit /refreshpolicy machine_policy /enforce</code> but was unable to apply the settings to the machine). Unfortunately, the machines I would need to run this on are not in a domain, it would just speed up setting settings on each individual machine.</p>
  
  <p>What could I do to change and apply new password policy and auditing settings via a script?</p>