title: windows - reg add ignores /f
body: <p>The title says it all.</p>
  
  <p>Code:</p>
  
  <pre><code>REG add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\" /f /t REG_DWORD /v "SystemRestore" /d 0 /f
  </code></pre>
  
  <p>It works when you execute it once but 2nd time it askes for prompt.</p>
  
  <p>I found this page but not worked.</p>
  
  <p><a href="https://superuser.com/questions/1198757/reg-add-ignores-f">Link:</a> <a href="https://superuser.com/questions/1198757/reg-add-ignores-f">https://superuser.com/questions/1198757/reg-add-ignores-f</a></p>
  
  <p>Btw i am not going to be online. Ill look in 1 day. Thanks.</p>