title: How can I use vbscript to add or change permissions on a registry key?
body: <p>I want to use vbscript (or some scripting language I can run locally on a windows 7 machine) and change a registry key's <em>permissions</em>.</p>
  
  <p>I saw regini, but it's old, and I didn't see how to use it for my needs.  Specifically, as an example, I need to add:</p>
  
  <p><code>nt service\BFE</code> to the <code>HKLM\currentcontrolset\services\bfe\parameters\policy</code>.  Then I have to use advanced, add bfe, then use specific permissions such as set, read, query value, delete, but not full control.</p>
  
  <p>How can I do this programmatically with a scripting language?</p>
  
  <p>Thanks.</p>