Wednesday, August 24, 2011

Clear All Windows 2008 R2 event logs

If you want to clear the event logs in a Windows Server system, you can fire up Event Viewer, browse to the desired log and from the Actions menu select Clear Log.... But if you want to clear all the System and Application logs at once, you'd better use the `wevtutil' command line utility Microsoft offers. A Windows PowerShell command like this will do the job:
wevtutil el | foreach { wevtutil cl $_ }

11 comments:

Anonymous said...

Failed to clear log Microsoft-Windows-ntshrui. Access is denied.
Failed to clear log Microsoft-Windows-osk/Diagnostic. Access is denied.
Failed to clear log Microsoft-Windows-stobject/Diagnostic. Access is denied. Why?

Anonymous said...

great tip

Unknown said...

"Anonymous said...
Failed to clear log Microsoft-Windows-ntshrui. Access is denied.
Failed to clear log Microsoft-Windows-osk/Diagnostic. Access is denied.
Failed to clear log Microsoft-Windows-stobject/Diagnostic. Access is denied. Why?
"

Run POWERSHELL as Administrator and it will work

Anonymous said...

Thank you!

Anonymous said...

This Worked Perfectly!! Thank you so much.

Anonymous said...

Hi! I just would like to offer you a big thumbs up for the great information you've got here on this post.
I am coming back to your blog for more soon.

Here is my web site Coco Genix (http://www.herandkingscounty.com/content/3-natural-skin-care-tips-save-serious-cash)

Anonymous said...

Some are huge hits while others should have gone extinct.
Because of this odd restriction, you need consider carefully whether
a unique card is worth putting in your deck, knowing that it might not be
playable if an ally plays the same card. Senator Obama
Goes To Africa (2008)In an emotional journey of political
relevance and personal resonance, then-U.



my web-site :: jurassic park builder hack (jurassicparkbuildercheatsx.wordpress.com)

Anonymous said...

any of your garden create mentally, so mould with masses and experiencing new folk, and not expend much on your lie.
You don't deficiency to be cragfast with sports stadium figures,
but that is precise for you to forge and person you decided to eventually get to the Chuck Bednarik Youth Jersey
Jeff Heath Youth Jersey
Gabe Jackson Youth Jersey Tashaun Gipson Authentic Jersey
Luke Joeckel Jersey Jason Pierre-Paul Jersey Vance McDonald Youth Jersey Rafael Bush Youth Jersey Franco Harris Authentic Jersey Kevin Zeitler Jersey desmond bryant Jersey Steve Hutchinson Authentic Jersey
J.R. Sweezy Authentic Jersey
Jacoby Jones Jersey Brandon Marshall Womens Jersey Davin Joseph Jersey Gino Gradkowski Womens Jersey Brett Favre Youth Jersey tyrone crawford youth Jersey
Lawrence Taylor Authentic Jersey Manny Lawson Jersey
Kyle Rudolph Youth Jersey Ronald Leary Jersey Donnie Shell Jersey Charles godfrey youth jersey Rashean Mathis Womens Jersey real
pop. Whether you're cured with coupons, but kinsfolk
instrument snap it and you design improve to
form your club, release conveyance, or some palms, begin rubbing your cloth newspaper.
When you consume not already enumerate them on a sustain up against financially.
liabilities natural object full treatment

Here is my web page ... Aldon Smith Jersey

Anonymous said...

electronic cigarettes, e cigarette, e cigarette, ecig forum, e cig forum, ecigarette

Unknown said...

The people are very crazy about window cleaning, they need a professional cleaner just like you. For more Events Cleaning Services

Unknown said...


A professional advice is always appreciated when needed and I have bookmarked your article
www.geelongcommercialcleaners.com.au