wevtutil el | foreach { wevtutil cl $_ }
Showing posts with label Event Logs. Show all posts
Showing posts with label Event Logs. Show all posts
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:
Ετικέτες
clear event logs,
Delete event logs,
Event Logs,
Windows 2008 R2
Subscribe to:
Posts (Atom)