title: Suppress popup window in vbs on timeout of Windows Update Search
body: <p>I have a vb-script which checks if there are updates pending. Sometimes windows search returns an error (for example 503) and an error popup is generated. Since I'm not familiar with vbs, I don't know where to start searching for a solution.</p>
  
  <pre><code>
          Set updateSession = CreateObject("Microsoft.Update.Session")
          Set updateSearcher = updateSession.CreateupdateSearcher()
          Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
  </code></pre>
  
  <p>The problem occurs in line 3. It says:</p>
  
  <pre>
  Script: C:\path-to-my-script\my-script.vbs
  Line:   3
  Char:   1
  Error:  0x80244022
  Code:   80244022
  Source: (null)
  </pre>
  
  <p>How can I either prevent the popup from being generated or get a handle to it and close it immediately?</p>