Before installing the system to do a ghost, in order to achieve perfection, every time you do ghost will manually clear the Event Viewer all Windows EventLog log.
Later, after using Windows 2008 r2/win7, the incident was much more complicated, so it was out of control.
Then some colleagues asked how to clear them all, because one by one, at the Microsoft level there are many directories, to completely clean up half an hour, and then after the removal, not practical.
Today, when I play Hyper-V, I always see a pile of error, in view of the continuous delivery to the company before, batch processing, so think should be able to use batch processing to achieve, Google found an international friend has mentioned the removal of all Win7 EventLog method, Wrote a screen of CMD, to the next line, to clear all Windows eventlog methods.
This approach eats all Windows systems in principle, but I only test them on Windows 2008 R2, so at least Vista versions should be available.
Write so much is to SEO, the following for the body, save for WindowsEventLog.ClearAll.cmd double click Execute:
Copy Code code as follows:
@ECHO off
TITLE Clear all Event Viewer to see the EventLog log, Midway prompts error do not pay attention to
ECHO.
ECHO Liu YONGFA 2012-1-29 12:05:30
ECHO.
for/f%%i In (' WEVTUTIL EL ') do (WEVTUTIL CL%%i)
PAUSE