Overclock.net › Forums › Intel › Intel CPUs › Clean your Eventviewer in Windows 7
New Posts  All Forums:Forum Nav:

Clean your Eventviewer in Windows 7

post #1 of 9
Thread Starter 
In order to clean your event viewer when maybe priming and monitoring your event viewer with a fresh overclock or just want to clean up that messy looking eventviewer of all its red and yellow ugly coloring, just save the below batch script, then give it administrator privileges as you run it, for it to complete its task.
Code:
@echo off
FOR /F "tokens=1,2*" %%V IN ('bcdedit') DO SET adminTest=%%V
IF (%adminTest%)==(Access) goto noAdmin
for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
echo.
echo goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
exit

This should save you the trouble of clicking on each and every entry
Edited by TLM-610 - 4/24/13 at 2:00pm
post #2 of 9
thanks for that
BEAST
(26 items)
 
The Wifey's Rig
(14 items)
 
The Black Pearl
(25 items)
 
CPUMotherboardGraphicsGraphics
intel i7 3770K Gigabyte Z77 UD3R Sapphire Radeon r9 290x Sapphire Radeon r9 290x 
RAMHard DriveHard DriveHard Drive
Corsair Vengeance 8GB seagate barracuda 7200 RPM 1 TB PNY 120GB SSD PNY 240GB SSD 
CoolingCoolingCoolingCooling
ek supermacy full nickel Mayhem Pastel white  Mayhem blue non stain dye ek FC r9 290x 
CoolingCoolingCoolingCooling
ek fc r9 290x  swiftech mcp655 Koolance COV-RP450  EK-CoolStream RAD XT 240mm 
CoolingCoolingCoolingMonitor
Swiftech MCR320 360MM  Primochil ghost rigid compression fittings Primochill PETG Tubes X-star 
KeyboardPowerCaseMouse
Nixeus moda v2 EVGA SuperNova GS850 NZXT H440 Logitech G400 
Mouse PadAudio
Razer Goliathus Asus Xonar DGX 
CPUMotherboardGraphicsRAM
intel i5 4430 Asrock z78 pro 4 Sapphire 7870 XT G.Skill Aries 8GB 
Hard DriveCoolingOSMonitor
A LOT OF THEM Corsair H80 Windows 7 ultimate Samsung 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Corsair 650XT Thermale take armor revo 4 Cooler master storm xornet 
Mouse PadAudio
Steelseries CKQ Steelseries Flux luxury edition 
CPUMotherboardGraphicsRAM
Intel i7 3770k GigaByte GA-Z77x-UD3H sapphire R9 290X Corsair Vengeance 8GB  
Hard DriveOptical DriveCoolingCooling
western digital caviar blue Samsung HF-132B Corsair Sp120 Corsair AF AF120 LED 
CoolingCoolingCoolingCooling
Alphacool ST30 AlphaCool XT45 EK supremacy Clean CSQ Full Nickel PrimoChill Advanced LTR tubing 
CoolingCoolingCoolingOS
Swiftech MCP50X Alphacool Cape Corp 100ml Koolance VID-290X Windows 7 Ultimate 
MonitorMonitorKeyboardPower
X-Star Dp2710 @ 92HZ BenQ E2400HD Cooler Master Quickfire Ultimate seasonic M12II 750W 
CaseMouseMouse PadAudio
Corsair Carbide 500R logitech G400 Cooler Master SteelSeries Syberia V2 
Other
NZXT LED strip 
  hide details  
Reply
BEAST
(26 items)
 
The Wifey's Rig
(14 items)
 
The Black Pearl
(25 items)
 
CPUMotherboardGraphicsGraphics
intel i7 3770K Gigabyte Z77 UD3R Sapphire Radeon r9 290x Sapphire Radeon r9 290x 
RAMHard DriveHard DriveHard Drive
Corsair Vengeance 8GB seagate barracuda 7200 RPM 1 TB PNY 120GB SSD PNY 240GB SSD 
CoolingCoolingCoolingCooling
ek supermacy full nickel Mayhem Pastel white  Mayhem blue non stain dye ek FC r9 290x 
CoolingCoolingCoolingCooling
ek fc r9 290x  swiftech mcp655 Koolance COV-RP450  EK-CoolStream RAD XT 240mm 
CoolingCoolingCoolingMonitor
Swiftech MCR320 360MM  Primochil ghost rigid compression fittings Primochill PETG Tubes X-star 
KeyboardPowerCaseMouse
Nixeus moda v2 EVGA SuperNova GS850 NZXT H440 Logitech G400 
Mouse PadAudio
Razer Goliathus Asus Xonar DGX 
CPUMotherboardGraphicsRAM
intel i5 4430 Asrock z78 pro 4 Sapphire 7870 XT G.Skill Aries 8GB 
Hard DriveCoolingOSMonitor
A LOT OF THEM Corsair H80 Windows 7 ultimate Samsung 
KeyboardPowerCaseMouse
Cooler Master Quickfire TK Corsair 650XT Thermale take armor revo 4 Cooler master storm xornet 
Mouse PadAudio
Steelseries CKQ Steelseries Flux luxury edition 
CPUMotherboardGraphicsRAM
Intel i7 3770k GigaByte GA-Z77x-UD3H sapphire R9 290X Corsair Vengeance 8GB  
Hard DriveOptical DriveCoolingCooling
western digital caviar blue Samsung HF-132B Corsair Sp120 Corsair AF AF120 LED 
CoolingCoolingCoolingCooling
Alphacool ST30 AlphaCool XT45 EK supremacy Clean CSQ Full Nickel PrimoChill Advanced LTR tubing 
CoolingCoolingCoolingOS
Swiftech MCP50X Alphacool Cape Corp 100ml Koolance VID-290X Windows 7 Ultimate 
MonitorMonitorKeyboardPower
X-Star Dp2710 @ 92HZ BenQ E2400HD Cooler Master Quickfire Ultimate seasonic M12II 750W 
CaseMouseMouse PadAudio
Corsair Carbide 500R logitech G400 Cooler Master SteelSeries Syberia V2 
Other
NZXT LED strip 
  hide details  
Reply
post #3 of 9
Thread Starter 
Your welcome.
Edited by TLM-610 - 4/24/13 at 1:59pm
post #4 of 9
Thanks!
Bluebonic chronic
(15 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Gigabyte G1 Sniper 3 MSI GTX 470  EVGA GTX 470 
RAMHard DriveHard DriveCooling
Mushkin Blackline 1600  Corsair Force GT 120 GB WD 1TB Black Sata III XSPC Rasa CPU/ EK full cover GTX 470's 
OSMonitorKeyboardPower
Windows 7 Ult. x64 ASUS 24" LED Logitech Wireless Corsair 950 TX 
CaseMouseMouse Pad
Cosmos S Logitech G9x Wal-Mart special 
  hide details  
Reply
Bluebonic chronic
(15 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Gigabyte G1 Sniper 3 MSI GTX 470  EVGA GTX 470 
RAMHard DriveHard DriveCooling
Mushkin Blackline 1600  Corsair Force GT 120 GB WD 1TB Black Sata III XSPC Rasa CPU/ EK full cover GTX 470's 
OSMonitorKeyboardPower
Windows 7 Ult. x64 ASUS 24" LED Logitech Wireless Corsair 950 TX 
CaseMouseMouse Pad
Cosmos S Logitech G9x Wal-Mart special 
  hide details  
Reply
post #5 of 9
Thread Starter 
Welcome guys,

Now to even make it more convinient for you guys out there to repair windows as you clean your Event viewer make sure to add this to your line:-
Code:
echo Y|chkdsk.exe c: /r

It works and is fully automatic like the tax you pay with your credit card!
post #6 of 9
Thread Starter 
The above will require a manual reboot, I could also give the automatic script for that but too risky for those downloading sensitive downloads as it will immediately reboot your pc and perform the repair.
post #7 of 9
I freaking love you. Been looking for a way to clean my event log easily, this does the trick and takes seconds.

Awesome.
post #8 of 9
Thread Starter 
Your welcome.
post #9 of 9
Thread Starter 
Am bumping this up for newcomers or those who missed it
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Intel CPUs
Overclock.net › Forums › Intel › Intel CPUs › Clean your Eventviewer in Windows 7