title: how to get the information of system log of taskscheduler under the command line with WMIC?
body: <p>I need to know whether the <code>taskscheduler</code> has run successfully. I found difficult to get a return value by the <code>wmic</code> command, because they aren't included in the system, security, application hardwareevents and so on logfile. Following is my attempts:</p>
  
  <pre><code>wmic ntevent "eventcode=140" get message /value
  </code></pre>
  
  <p>The above code returns the message: "no instance(s) availalbe."</p>
  
  <p>As I don't know which kind of logfile includes the log records of <code>taskschedule</code>, I select them by the eventcode.</p>
  
  <pre><code>wmic ntevent where "logfile='system' and eventcode='140'" get message /vule
  </code></pre>
  
  <p>No matter, <code>logfile='appliaction'</code> or <code>logfile='security'</code>, at the end I can't get the result I want.</p>
  
  <p>What i need to point out is the log records are allocated in Microsoft-Windows-TaskScheduler/Operational in graphical interfaces.</p>