title: Writing to windows log with VBScript for Windows Updates?
body: <p>I am using <a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102%28v=vs.85%29.aspx" rel="nofollow">this sample script</a> from Microsoft to do Windows Updates.  However, whenever an update is installed, I want to write it to a custom log.  Right now, I've tweaked the last part of the code as follows:</p>
  
  <pre><code>    For I = 0 to updatesToInstall.Count - 1
          WScript.Echo I + 1 &amp; "&gt; " &amp; _
          updatesToInstall.Item(i).Title &amp; _
          ": " &amp; installationResult.GetUpdateResult(i).ResultCode 
  
          Set WshShell = WScript.CreateObject("WScript.Shell")
          addLog = "eventcreate /l Application /t Information /so Test-QA /id 74 /d Windows update added: " &amp; updatesToInstall.Item(i).Title
          WshShell.Run addLog
      Next
  End If
  </code></pre>
  
  <p>However, when updates were installed, nothing was added to the Windows Event Log.  What should I do in order to write this information to the log?</p>