title: Windows Registry Edit, dynamic registry address
body: <p>Every day i have to use the Local Group Policy Editor to configure some computers (windows 10), so I want to create a batch (*.bat) script to do it automatically and quickly.</p>
  
  <p>I manage to write down this script which is working...</p>
  
  <pre><code>REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Group Policy Objects\{7DD69AA7-9A2E-4966-A274-9DE9DD62D62B}Machine\Software\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate /v NoAutoUpdate /t REG_DWORD /d 1
  </code></pre>
  
  <p>My problem is that the script is working only on my machine because on another computer the <code>7DD69AA7-9A2E-4966-A274-9DE9DD62D62B</code> code in the register address is different and it's different for every computer.
  This code is present also in all other register address that I have to modify.</p>
  
  <ul>
  <li><p>What is that code?</p></li>
  <li><p>Is there a way to write a generic register address that will work on different machines without the need of changing it?</p></li>
  </ul>
  
  <p>Thanks for the help.</p>