title: How can one reg add to Internet Settings with hex value via batch file?
body: <p>I'm writing a batch file to customize internet explorer's internet properties -> security zones via registry. My code currently alters the template policies in 
  "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\TemplatePolicies\LOW" and "../MEDIUM", it then starts inetcpl.cpl, and then the user must manually move the slider to low in the trusted site zone and then medium in the internet zone. </p>
  
  <p>This can be automated by changing the value CurrentLevel in "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2" and "../3" respectively. My code for some reason writes a zero to the registry entry "CurrentLevel". I need to set "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2\CurrentLevel" to 0x00010000. </p>
  
  <p>Here is the part of my code that is at fault:</p>
  
  <pre><code>echo Moving sliders...
  echo.
  set qry="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\2"
  reg add %qry% /v CurrentLevel /t REG_DWORD /d 65536 /f
  set qry="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3"
  reg add %qry% /v CurrentLevel /t REG_DWORD /d 69632 /f
  </code></pre>
  
  <p>From a hex to decimal converter '65536'='0x00010000' and '69632'='0x00011000'. Why is my code writing a zero to CurrentLevel?</p>
  
  <p>Documentation that may help can be found <a href="http://support.microsoft.com/kb/182569" rel="nofollow">HERE</a></p>
  
  <p>THANK YOU!!!</p>