Windows 7 Most Coveted Win 7 Image

tblount

New Member
What do you think the most desired / coveted window you can open in Windows 7 would look like?

I finally found it! And finally achieved it!

It may be easy for some people but for me it's been like the search for the Holy Grail

I'll attach the image... it's a copy of my Event Viewer / Administrative log

.... WITH NO, NADA, 0, not a one, none ERRORS or Warnings

I found a way to clear my logs... then rebooted a few times to make sure nothing was coming back then captured this image.
 
I will put it in my blogs... but here is this great batch file:

@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 Event Logs have been cleared! ^<press any key^>
goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof
:noAdmin
echo You must run this script as an Administrator!
echo ^<press any key^>
:theEnd
pause>NUL
 
The batch is actually built in to Windows 7/Vista. The only difference, apart from adding ones own parameters, are the first lines assessing if the user is the true Administrator.
If you run wvetutil.exe from an elevated command prompt, it will pop up with a list of these possible parameters, which will then , of course, give you different opportunities. If you want to give yourself a headache, there is a technical expanation here:
http://technet.microsoft.com/en-us/library/cc732848.aspx
 
Back
Top