title: check if a registry key exists with WScript
body: <p>im trying to check if a registry key exists and no matter what i try i always get the error message "unable to open registry key for reading"</p>
  
  <p>the code im using:</p>
  
  <pre><code>keyPath = "HKEY_LOCAL_MACHINE\\SOFTWARE\\BOS\\BOSaNOVA TCP/IP\\Set 1\\Cfg\\Sign On\\";
  
  try
  {
      var shell = new ActiveXObject("WScript.Shell");
      var regValue = shell.RegRead(keyPath);
  
      shell = null;
  }
  catch(err)
  {
  
  }
  </code></pre>
  
  <p>what im missing here?</p>