title: Timeout in VBscript
body: <p>I am trying to add timeout in vbscript. So that where ever the server is not responding/hung script will wait only for a minuet and will continue collecting data from other remote server. But the timeout script below is not working.</p>
  
  <p>Can anyone help me to correct this please ?</p>
  
  <pre><code>strComputer=""
  timeout=60
  Set locator =CreateObject("WbemScripting.SWbemLocator")
  locator.Security_.ImpersonationLevel=3
  Set wmi=locator.ConnectComputer(strSrv,"root\cimv2",,,timeout)
  strQuery = "SELECT * from Win32_BIOS"
  Set results =wmi.ExecQuery(strQuery)
  </code></pre>