title: registry script - can you assign a decimal value without the dword keyword
body: <p>Which of the following registry scripts is syntactically correct?  Will both work?  Is one preferred?</p>
  
  <p><strong>Sample A:</strong></p>
  
  <pre><code>REGEDIT4
  
  [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\explorer]
  "nodrivetypeautorun"=255
  </code></pre>
  
  <p><strong>Sample B:</strong></p>
  
  <pre><code>REGEDIT4
  
  [HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\explorer]
  "nodrivetypeautorun"=dword:000000FF
  </code></pre>
  
  <p>Technically, in this example, the "nodrivetypeautorun" element is a dword data type.  I don't want to fixate on the "nodrivetypeautorun" element.  I am only concerned about dword data types and the proper way to set them in a registry script.</p>
  
  <p>I think that Sample A will fail to import the value, and I think I can prove it.  What I need is a reference online that will back me up because some people that I work with won't take my word for it, even if I demonstrate the problem.  I've spent some time with google and can't find what I'm looking for.  The preferred answer to this question should have such a reference, but I'd settle for a general consensus from other professionals.</p>