Most Coveted Win 7 Image

Discussion in 'Windows 7 Help and Support' started by tblount, Oct 28, 2009.

  1. tblount

    tblount New Member

    Joined:
    Sep 27, 2009
    Messages:
    3,537
    Likes Received:
    64
    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.
     
  2. tblount

    tblount New Member

    Joined:
    Sep 27, 2009
    Messages:
    3,537
    Likes Received:
    64
    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
     
  3. RAK

    RAK Extraordinary Member

    Joined:
    Jul 6, 2009
    Messages:
    2,502
    Likes Received:
    126
    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
     

Share This Page

Loading...