title: How to change group policy via command line?
body: <p>I want to update <code>group policy</code> in windows server using command line. I don't want programatic way. I read <a href="https://stackoverflow.com/questions/9985902/how-to-configure-windows-group-policy-using-c">this</a> &amp; <a href="https://stackoverflow.com/questions/2266797/how-to-apply-windows-group-policy-using-net">this</a>, and then tried delete registry keys based on the mapping of group policy and registry keys, but the group policy didn't got updated.</p>
  
  <p>Specifically, I want to set <code>Computer Configuration\Administrative Templates\Windows Components\Windows Update\Configure Automatic Updates</code> to <code>Not configured</code> in group policy.</p>
  
  <p>So, I ran following commands,</p>
  
  <pre><code>C:\Windows\system32&gt;reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallTime /f
  The operation completed successfully.
  
  C:\Windows\system32&gt;reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v ScheduledInstallDay /f
  The operation completed successfully.
  
  C:\Windows\system32&gt;reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoUpdate /f
  The operation completed successfully.
  
  C:\Windows\system32&gt;reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v AUOptions /f
  The operation completed successfully.
  </code></pre>
  
  <p>But after that the group policy wasn't updated. Do I need to run another command to propagate my registry changes to group policy? If yes, what is it? What am I missing?</p>
  
  <p>I tried, <code>gpupdate /force</code>, it overrided my registry changes. I need converse of this. </p>