title: Extracting error logs from Windows event viewer
body: <p>I want to create <code>VBScript</code> code to retrieve specifically error type logs from Windows Event Viewer, save them in a <code>.txt</code> file, and transfer it via FTP or just direct copy. </p>
  
  <p>How can I achieve this?</p>
  
  <p>I've been doing some reading and stumbled upon these pages: </p>
  
  <p><a href="http://social.technet.microsoft.com/Forums/windowsserver/en-US/0edeb332-5e66-4b03-9957-b4d076e0406f/vbscript-to-pull-only-errors-from-the-event-log-on-a-remote-computer?forum=ITCG" rel="nofollow noreferrer">Main question</a>, <a href="http://technet.microsoft.com/en-us/library/bb490900.aspx" rel="nofollow noreferrer">Eventquery.vbs info</a> and <a href="http://social.technet.microsoft.com/Forums/scriptcenter/en-US/557bdbcb-6ff3-4a01-a660-17fa99d732bb/copy-file-to-remote-machine?forum=ITCG" rel="nofollow noreferrer">Copy file to remote computer</a>.</p>
  
  <p>But I just don't understand how to do this process as a whole.</p>