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 method in principle can take all the Windows system, but I only test on Windows 2008 R2 Pass, so at least vista above version should be able to use.
The following is the body, saved as WindowsEventLog.ClearAll.cmd double-click execution:
Copy Code code as follows:
@ECHO off
TITLE clears the EventLog log that is seen in all event viewers
ECHO.
ECHO createby Liu Yongfa 2012-1-29 12:05:30
ECHO modifyby Liu Yongfa 2012-9-25 18:10:55
ECHO.
for/f "delims="%%i In (' WEVTUTIL EL ') do (WEVTUTIL CL "%%i")
PAUSE