title: Scripts for security permissions
body: <p>I want to write two scripts, they can be vbs or ms-dos commands. </p>
  
  <p>First is to setting a user permission for a folder (the equivalent to: right click on a folder, properties, security, edit, add, <code>NT AUTHORITY\NETWORK SERVICE</code>).</p>
  
  <p>Second is to set a permision to run as a service, the equivalent click click is: <code>Control Panel / Administrative Tools / Local Security Policy</code>; left side: <code>Local Policies / User Rights Assignment</code>; right side: <code>Log on as a service -&gt; add Network Service</code>  as a user that has rights.</p>
  
  <p>Would somebody help me to do that please?</p>