title: Query Internet Explorer version from command line does not always work?
body: <p>Step 1, I use the following command to get my local IE version from command line window:</p>
  
  <pre><code>reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v  version" 
  </code></pre>
  
  <p>It will work and give me the IE version like this:</p>
  
  <pre><code>  ! REG.EXE VERSION 3.0
  
  HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer
      version     REG_SZ  7.0.5730.13
  </code></pre>
  
  <p>Step 2, Now I try to use this command:</p>
  
  <pre><code> reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v  version"  | find "version"
  </code></pre>
  
  <p>It would fail and tell me the following:</p>
  
  <pre><code>! REG.EXE VERSION 3.0
  
  HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer
  
  Error:  The system was unable to find the specified registry key or value
  </code></pre>
  
  <p>Step 3, Now if I go back to the first command:</p>
  
  <pre><code> reg query "HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer" /v  version"
  </code></pre>
  
  <p>it will give me the same error as in step 2.
  What I dont understand is why step 2 would fail, and why step 3 will fail since it's the same as step 1.</p>