Windows 7 forum

General discussion

Delete all event logs at once in Windows 7

by S13013E / January 13, 2010 10:01 PM PST

I've longed for the ability to clear all event logs with one click since Windows XP. It wasn't too bad in those days because there were only a hand full of event logs. Then came Vista, with a ton of them and a collection point for administrator events. It's a real pain in the butt to clear them all during trouble shooting as you have to go in to each source event log and clear it manually. I thought maybe Windows 7 would come with this feature but alas, I am not one of the thousands who can claim that Windows 7 was my idea.

So after much research, I found a little built in command line utility called wevtutil. go ahead, open a comman prompt and type wevtutil /? for more info.

So I put this text based batch file together to accomplish the task of clearing all event logs without saving. Simply cut/paste the text below in to a text file and save. Rename it from whatever.txt to whatever.bat, right click on it and select "run as administrator" and away it goes....

Would be nice to have a utility to do this or an option within the event viewer, but I guess this is the next best thing. I've not found anything else anywhere on the internet that does this. So I hope you all find it useful.

-----cut below this line-----

REM - Will clear all event logs in Windows 7 Ultimate without prompting or saving.
REM - Created by Leonard Rivera
wevtutil.exe cl Analytic
wevtutil.exe cl Application
wevtutil.exe cl DirectShowFilterGraph
wevtutil.exe cl DirectShowPluginControl
wevtutil.exe cl EndpointMapper
wevtutil.exe cl ForwardedEvents
wevtutil.exe cl HardwareEvents
wevtutil.exe cl Internet Explorer
wevtutil.exe cl Key Management Service
wevtutil.exe cl MF_MediaFoundationDeviceProxy
wevtutil.exe cl "Media Center"
wevtutil.exe cl MediaFoundationDeviceProxy
wevtutil.exe cl MediaFoundationPerformance
wevtutil.exe cl MediaFoundationPipeline
wevtutil.exe cl MediaFoundationPlatform
wevtutil.exe cl Microsoft-IE/Diagnostic
wevtutil.exe cl Microsoft-IEFRAME/Diagnostic
wevtutil.exe cl Microsoft-PerfTrack-IEFRAME/Diagnostic
wevtutil.exe cl Microsoft-PerfTrack-MSHTML/Diagnostic
wevtutil.exe cl Microsoft-Windows-ADSI/Debug
wevtutil.exe cl Microsoft-Windows-API-Tracing/Operational
wevtutil.exe cl Microsoft-Windows-ATAPort/General
wevtutil.exe cl Microsoft-Windows-ATAPort/SATA-LPM
wevtutil.exe cl Microsoft-Windows-ActionQueue/Analytic
wevtutil.exe cl Microsoft-Windows-AltTab/Diagnostic
wevtutil.exe cl Microsoft-Windows-AppID/Operational
wevtutil.exe cl Microsoft-Windows-AppLocker/EXE and DLL
wevtutil.exe cl Microsoft-Windows-AppLocker/MSI and Script
wevtutil.exe cl Microsoft-Windows-Application-Experience/Problem-Steps-Recorder
wevtutil.exe cl Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant
wevtutil.exe cl Microsoft-Windows-Application-Experience/Program-Compatibility-Troubleshooter
wevtutil.exe cl Microsoft-Windows-Application-Experience/Program-Inventory
wevtutil.exe cl Microsoft-Windows-Application-Experience/Program-Inventory/Debug
wevtutil.exe cl Microsoft-Windows-Application-Experience/Program-Telemetry
wevtutil.exe cl Microsoft-Windows-Audio/CaptureMonitor
wevtutil.exe cl Microsoft-Windows-Audio/Operational
wevtutil.exe cl Microsoft-Windows-Audio/Performance
wevtutil.exe cl Microsoft-Windows-Audit/Analytic
wevtutil.exe cl "Microsoft-Windows-Authentication User Interface/Operational"
wevtutil.exe cl Microsoft-Windows-AxInstallService/Log
wevtutil.exe cl Microsoft-Windows-Backup
wevtutil.exe cl Microsoft-Windows-Biometrics/Operational
wevtutil.exe cl Microsoft-Windows-BitLocker-DrivePreparationTool/Admin
wevtutil.exe cl Microsoft-Windows-BitLocker-DrivePreparationTool/Operational
wevtutil.exe cl Microsoft-Windows-Bits-Client/Analytic
wevtutil.exe cl Microsoft-Windows-Bits-Client/Operational
wevtutil.exe cl Microsoft-Windows-Bluetooth-MTPEnum/Operational
wevtutil.exe cl Microsoft-Windows-BranchCache/Operational
wevtutil.exe cl Microsoft-Windows-BranchCacheClientEventProvider/Diagnostic
wevtutil.exe cl Microsoft-Windows-BranchCacheEventProvider/Diagnostic
wevtutil.exe cl Microsoft-Windows-BranchCacheSMB/Analytic
wevtutil.exe cl Microsoft-Windows-BranchCacheSMB/Operational
wevtutil.exe cl Microsoft-Windows-CAPI2/Operational
wevtutil.exe cl Microsoft-Windows-CDROM/Operational
wevtutil.exe cl Microsoft-Windows-COM/Analytic
wevtutil.exe cl Microsoft-Windows-COMRuntime/Tracing
wevtutil.exe cl Microsoft-Windows-Calculator/Debug
wevtutil.exe cl Microsoft-Windows-Calculator/Diagnostic
wevtutil.exe cl Microsoft-Windows-CertPoleEng/Operational
wevtutil.exe cl Microsoft-Windows-CertificateServicesClient-CredentialRoaming/Operational
wevtutil.exe cl Microsoft-Windows-ClearTypeTextTuner/Diagnostic
wevtutil.exe cl Microsoft-Windows-CmiSetup/Analytic
wevtutil.exe cl Microsoft-Windows-CodeIntegrity/Operational
wevtutil.exe cl Microsoft-Windows-CodeIntegrity/Verbose
wevtutil.exe cl Microsoft-Windows-ComDlg32/Analytic
wevtutil.exe cl Microsoft-Windows-ComDlg32/Debug
wevtutil.exe cl Microsoft-Windows-CorruptedFileRecovery-Client/Operational
wevtutil.exe cl Microsoft-Windows-CorruptedFileRecovery-Server/Operational
wevtutil.exe cl Microsoft-Windows-CredUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-Crypto-RNG/Analytic
wevtutil.exe cl Microsoft-Windows-DCLocator/Debug
wevtutil.exe cl Microsoft-Windows-DNS-Client/Operational
wevtutil.exe cl Microsoft-Windows-DUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-DUSER/Diagnostic
wevtutil.exe cl Microsoft-Windows-DXP/Analytic
wevtutil.exe cl Microsoft-Windows-DateTimeControlPanel/Analytic
wevtutil.exe cl Microsoft-Windows-DateTimeControlPanel/Debug
wevtutil.exe cl Microsoft-Windows-DateTimeControlPanel/Operational
wevtutil.exe cl Microsoft-Windows-Deplorch/Analytic
wevtutil.exe cl Microsoft-Windows-DeviceSync/Analytic
wevtutil.exe cl Microsoft-Windows-DeviceSync/Operational
wevtutil.exe cl Microsoft-Windows-DeviceUx/Informational
wevtutil.exe cl Microsoft-Windows-DeviceUx/Performance
wevtutil.exe cl Microsoft-Windows-Dhcp-Client/Admin
wevtutil.exe cl Microsoft-Windows-Dhcp-Client/Operational
wevtutil.exe cl Microsoft-Windows-DhcpNap/Admin
wevtutil.exe cl Microsoft-Windows-DhcpNap/Operational
wevtutil.exe cl Microsoft-Windows-Dhcpv6-Client/Admin
wevtutil.exe cl Microsoft-Windows-Dhcpv6-Client/Operational
wevtutil.exe cl Microsoft-Windows-DiagCpl/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-DPS/Analytic
wevtutil.exe cl Microsoft-Windows-Diagnosis-DPS/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-DPS/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-MSDE/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-PCW/Analytic
wevtutil.exe cl Microsoft-Windows-Diagnosis-PCW/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-PCW/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-PLA/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-PLA/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-Perfhost/Analytic
wevtutil.exe cl Microsoft-Windows-Diagnosis-Scheduled/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-Scripted/Admin
wevtutil.exe cl Microsoft-Windows-Diagnosis-Scripted/Analytic
wevtutil.exe cl Microsoft-Windows-Diagnosis-Scripted/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-Scripted/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-ScriptedDiagnosticsProvider/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-ScriptedDiagnosticsProvider/Operational
wevtutil.exe cl Microsoft-Windows-Diagnosis-TaskManager/Debug
wevtutil.exe cl Microsoft-Windows-Diagnosis-WDC/Analytic
wevtutil.exe cl Microsoft-Windows-Diagnosis-WDI/Debug
wevtutil.exe cl Microsoft-Windows-Diagnostics-Networking/Debug
wevtutil.exe cl Microsoft-Windows-Diagnostics-Networking/Operational
wevtutil.exe cl Microsoft-Windows-Diagnostics-PerfTrack-Counters/Diagnostic
wevtutil.exe cl Microsoft-Windows-Diagnostics-PerfTrack/Diagnostic
wevtutil.exe cl Microsoft-Windows-Diagnostics-Performance/Diagnostic
wevtutil.exe cl Microsoft-Windows-Diagnostics-Performance/Diagnostic/Loopback
wevtutil.exe cl Microsoft-Windows-Diagnostics-Performance/Operational
wevtutil.exe cl Microsoft-Windows-DirectShow-KernelSupport/Performance
wevtutil.exe cl Microsoft-Windows-DirectSound/Debug
wevtutil.exe cl Microsoft-Windows-DirectWrite-FontCache/Tracing
wevtutil.exe cl Microsoft-Windows-Disk/Operational
wevtutil.exe cl Microsoft-Windows-DiskDiagnostic/Operational
wevtutil.exe cl Microsoft-Windows-DiskDiagnosticDataCollector/Operational
wevtutil.exe cl Microsoft-Windows-DiskDiagnosticResolver/Operational
wevtutil.exe cl Microsoft-Windows-DisplayColorCalibration/Debug
wevtutil.exe cl Microsoft-Windows-DisplayColorCalibration/Operational
wevtutil.exe cl Microsoft-Windows-DisplaySwitch/Diagnostic
wevtutil.exe cl Microsoft-Windows-Documents/Performance
wevtutil.exe cl Microsoft-Windows-DriverFrameworks-UserMode/Operational
wevtutil.exe cl Microsoft-Windows-DxgKrnl/Diagnostic
wevtutil.exe cl Microsoft-Windows-DxgKrnl/Performance
wevtutil.exe cl Microsoft-Windows-DxpTaskRingtone/Analytic
wevtutil.exe cl Microsoft-Windows-DxpTaskSyncProvider/Analytic
wevtutil.exe cl Microsoft-Windows-EFS/Debug
wevtutil.exe cl Microsoft-Windows-EapHost/Analytic
wevtutil.exe cl Microsoft-Windows-EapHost/Debug
wevtutil.exe cl Microsoft-Windows-EapHost/Operational
wevtutil.exe cl Microsoft-Windows-EaseOfAccess/Diagnostic
wevtutil.exe cl Microsoft-Windows-EventCollector/Debug
wevtutil.exe cl Microsoft-Windows-EventCollector/Operational
wevtutil.exe cl Microsoft-Windows-EventLog-WMIProvider/Debug
wevtutil.exe cl Microsoft-Windows-EventLog/Analytic
wevtutil.exe cl Microsoft-Windows-EventLog/Debug
wevtutil.exe cl Microsoft-Windows-FMS/Analytic
wevtutil.exe cl Microsoft-Windows-FMS/Debug
wevtutil.exe cl Microsoft-Windows-FMS/Operational
wevtutil.exe cl Microsoft-Windows-FailoverClustering-Client/Diagnostic
wevtutil.exe cl Microsoft-Windows-Fault-Tolerant-Heap/Operational
wevtutil.exe cl Microsoft-Windows-Feedback-Service-TriggerProvider
wevtutil.exe cl Microsoft-Windows-FileInfoMinifilter/Operational
wevtutil.exe cl Microsoft-Windows-Firewall-CPL/Diagnostic
wevtutil.exe cl "Microsoft-Windows-Folder Redirection/Operational"
wevtutil.exe cl Microsoft-Windows-Forwarding/Debug
wevtutil.exe cl Microsoft-Windows-Forwarding/Operational
wevtutil.exe cl Microsoft-Windows-GettingStarted/Diagnostic
wevtutil.exe cl Microsoft-Windows-GroupPolicy/Operational
wevtutil.exe cl Microsoft-Windows-HAL/Debug
wevtutil.exe cl Microsoft-Windows-HealthCenter/Debug
wevtutil.exe cl Microsoft-Windows-HealthCenter/Performance
wevtutil.exe cl Microsoft-Windows-HealthCenterCPL/Performance
wevtutil.exe cl Microsoft-Windows-Help/Operational
wevtutil.exe cl "Microsoft-Windows-HomeGroup Control Panel Performance/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Control Panel/Operational"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Listener Service/Operational"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Provider Service Performance/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Provider Service/Operational"
wevtutil.exe cl Microsoft-Windows-HomeGroup-ListenerService
wevtutil.exe cl Microsoft-Windows-HotStart/Diagnostic
wevtutil.exe cl Microsoft-Windows-HttpService/Trace
wevtutil.exe cl Microsoft-Windows-IKE/Operational
wevtutil.exe cl Microsoft-Windows-IKEDBG/Debug
wevtutil.exe cl Microsoft-Windows-IPBusEnum/Tracing
wevtutil.exe cl Microsoft-Windows-IPSEC-SRV/Diagnostic
wevtutil.exe cl Microsoft-Windows-International-RegionalOptionsControlPanel/Operational
wevtutil.exe cl Microsoft-Windows-International/Operational
wevtutil.exe cl Microsoft-Windows-Iphlpsvc/Debug
wevtutil.exe cl Microsoft-Windows-Iphlpsvc/Operational
wevtutil.exe cl Microsoft-Windows-Iphlpsvc/Trace
wevtutil.exe cl Microsoft-Windows-Kernel-Acpi/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Boot/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-BootDiagnostics/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Disk/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-EventTracing/Admin
wevtutil.exe cl Microsoft-Windows-Kernel-EventTracing/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-File/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-Memory/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-Network/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-PnP/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Power/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Power/Thermal-Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Power/Thermal-Operational
wevtutil.exe cl Microsoft-Windows-Kernel-Prefetch/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Process/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-Processor-Power/Diagnostic
wevtutil.exe cl Microsoft-Windows-Kernel-Registry/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-StoreMgr/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-StoreMgr/Operational
wevtutil.exe cl Microsoft-Windows-Kernel-WDI/Analytic
wevtutil.exe cl Microsoft-Windows-Kernel-WDI/Debug
wevtutil.exe cl Microsoft-Windows-Kernel-WDI/Operational
wevtutil.exe cl Microsoft-Windows-Kernel-WHEA/Errors
wevtutil.exe cl Microsoft-Windows-Kernel-WHEA/Operational
wevtutil.exe cl Microsoft-Windows-Known Folders API Service
wevtutil.exe cl Microsoft-Windows-Known Folders/Operational
wevtutil.exe cl Microsoft-Windows-L2NA/Diagnostic
wevtutil.exe cl Microsoft-Windows-LDAP-Client/Debug
wevtutil.exe cl Microsoft-Windows-LUA-ConsentUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-LanguagePackSetup/Analytic
wevtutil.exe cl Microsoft-Windows-LanguagePackSetup/Debug
wevtutil.exe cl Microsoft-Windows-LanguagePackSetup/Operational
wevtutil.exe cl Microsoft-Windows-MCT/Operational
wevtutil.exe cl Microsoft-Windows-MPS-CLNT/Diagnostic
wevtutil.exe cl Microsoft-Windows-MPS-DRV/Diagnostic
wevtutil.exe cl Microsoft-Windows-MPS-SRV/Diagnostic
wevtutil.exe cl Microsoft-Windows-MSPaint/Admin
wevtutil.exe cl Microsoft-Windows-MSPaint/Debug
wevtutil.exe cl Microsoft-Windows-MSPaint/Diagnostic
wevtutil.exe cl Microsoft-Windows-MUI/Admin
wevtutil.exe cl Microsoft-Windows-MUI/Analytic
wevtutil.exe cl Microsoft-Windows-MUI/Debug
wevtutil.exe cl Microsoft-Windows-MUI/Operational
wevtutil.exe cl Microsoft-Windows-MediaFoundation-MFReadWrite/SinkWriter
wevtutil.exe cl Microsoft-Windows-MediaFoundation-MFReadWrite/SourceReader
wevtutil.exe cl Microsoft-Windows-MediaFoundation-MFReadWrite/Transform
wevtutil.exe cl Microsoft-Windows-MediaFoundation-PlayAPI/Analytic
wevtutil.exe cl Microsoft-Windows-MemoryDiagnostics-Results/Debug
wevtutil.exe cl Microsoft-Windows-MobilityCenter/Performance
wevtutil.exe cl Microsoft-Windows-NCSI/Analytic
wevtutil.exe cl Microsoft-Windows-NCSI/Operational
wevtutil.exe cl Microsoft-Windows-NDF-HelperClassDiscovery/Debug
wevtutil.exe cl Microsoft-Windows-NDIS-PacketCapture/Diagnostic
wevtutil.exe cl Microsoft-Windows-NDIS/Diagnostic
wevtutil.exe cl Microsoft-Windows-NDIS/Operational
wevtutil.exe cl Microsoft-Windows-NTLM/Operational
wevtutil.exe cl Microsoft-Windows-NWiFi/Diagnostic
wevtutil.exe cl Microsoft-Windows-Narrator/Diagnostic
wevtutil.exe cl Microsoft-Windows-NetShell/Performance
wevtutil.exe cl Microsoft-Windows-Network-and-Sharing-Center/Diagnostic
wevtutil.exe cl Microsoft-Windows-NetworkAccessProtection/Operational
wevtutil.exe cl Microsoft-Windows-NetworkAccessProtection/WHC
wevtutil.exe cl Microsoft-Windows-NetworkLocationWizard/Operational
wevtutil.exe cl Microsoft-Windows-NetworkProfile/Diagnostic
wevtutil.exe cl Microsoft-Windows-NetworkProfile/Operational
wevtutil.exe cl Microsoft-Windows-Networking-Correlation/Diagnostic
wevtutil.exe cl Microsoft-Windows-NlaSvc/Diagnostic
wevtutil.exe cl Microsoft-Windows-NlaSvc/Operational
wevtutil.exe cl Microsoft-Windows-OLEACC/Debug
wevtutil.exe cl Microsoft-Windows-OLEACC/Diagnostic
wevtutil.exe cl Microsoft-Windows-OOBE-Machine/Diagnostic
wevtutil.exe cl Microsoft-Windows-OfflineFiles/Analytic
wevtutil.exe cl Microsoft-Windows-OfflineFiles/Debug
wevtutil.exe cl Microsoft-Windows-OfflineFiles/Operational
wevtutil.exe cl Microsoft-Windows-OfflineFiles/SyncLog
wevtutil.exe cl Microsoft-Windows-OneX/Diagnostic
wevtutil.exe cl Microsoft-Windows-OobeLdr/Analytic
wevtutil.exe cl Microsoft-Windows-PCI/Diagnostic
wevtutil.exe cl Microsoft-Windows-ParentalControls/Operational
wevtutil.exe cl Microsoft-Windows-PeerToPeerDrtEventProvider/Diagnostic
wevtutil.exe cl Microsoft-Windows-PeopleNearMe/Operational
wevtutil.exe cl Microsoft-Windows-PortableDeviceStatusProvider/Analytic
wevtutil.exe cl Microsoft-Windows-PortableDeviceSyncProvider/Analytic
wevtutil.exe cl Microsoft-Windows-PowerCfg/Diagnostic
wevtutil.exe cl Microsoft-Windows-PowerCpl/Diagnostic
wevtutil.exe cl Microsoft-Windows-PowerEfficiencyDiagnostics/Diagnostic
wevtutil.exe cl Microsoft-Windows-PowerShell/Analytic
wevtutil.exe cl Microsoft-Windows-PowerShell/Operational
wevtutil.exe cl Microsoft-Windows-PrimaryNetworkIcon/Performance
wevtutil.exe cl Microsoft-Windows-PrintService/Admin
wevtutil.exe cl Microsoft-Windows-PrintService/Debug
wevtutil.exe cl Microsoft-Windows-PrintService/Operational
wevtutil.exe cl Microsoft-Windows-Program-Compatibility-Assistant/Debug
wevtutil.exe cl Microsoft-Windows-QoS-Pacer/Diagnostic
wevtutil.exe cl Microsoft-Windows-QoS-qWAVE/Debug
wevtutil.exe cl Microsoft-Windows-RPC/Debug
wevtutil.exe cl Microsoft-Windows-RPC/EEInfo
wevtutil.exe cl Microsoft-Windows-ReadyBoost/Analytic
wevtutil.exe cl Microsoft-Windows-ReadyBoost/Operational
wevtutil.exe cl Microsoft-Windows-ReadyBoostDriver/Analytic
wevtutil.exe cl Microsoft-Windows-ReadyBoostDriver/Operational
wevtutil.exe cl Microsoft-Windows-Recovery/Operational
wevtutil.exe cl Microsoft-Windows-ReliabilityAnalysisComponent/Operational
wevtutil.exe cl Microsoft-Windows-RemoteApp and Desktop Connections/Admin
wevtutil.exe cl Microsoft-Windows-RemoteAssistance/Admin
wevtutil.exe cl Microsoft-Windows-RemoteAssistance/Operational
wevtutil.exe cl Microsoft-Windows-RemoteAssistance/Tracing
wevtutil.exe cl Microsoft-Windows-Remotefs-UTProvider/Diagnostic
wevtutil.exe cl Microsoft-Windows-Resource-Exhaustion-Detector/Operational
wevtutil.exe cl Microsoft-Windows-Resource-Exhaustion-Resolver/Operational
wevtutil.exe cl Microsoft-Windows-Resource-Leak-Diagnostic/Operational
wevtutil.exe cl Microsoft-Windows-ResourcePublication/Tracing
wevtutil.exe cl Microsoft-Windows-RestartManager/Operational
wevtutil.exe cl Microsoft-Windows-Search-Core/Diagnostic
wevtutil.exe cl Microsoft-Windows-Search-ProtocolHandlers/Diagnostic
wevtutil.exe cl Microsoft-Windows-Security-Audit-Configuration-Client/Diagnostic
wevtutil.exe cl Microsoft-Windows-Security-Audit-Configuration-Client/Operational
wevtutil.exe cl Microsoft-Windows-Security-IdentityListener/Operational
wevtutil.exe cl Microsoft-Windows-Security-SPP/Perf
wevtutil.exe cl Microsoft-Windows-Sens/Debug
wevtutil.exe cl Microsoft-Windows-ServiceReportingApi/Debug
wevtutil.exe cl Microsoft-Windows-Services-Svchost/Diagnostic
wevtutil.exe cl Microsoft-Windows-Services/Diagnostic
wevtutil.exe cl Microsoft-Windows-Setup/Analytic
wevtutil.exe cl Microsoft-Windows-SetupCl/Analytic
wevtutil.exe cl Microsoft-Windows-SetupQueue/Analytic
wevtutil.exe cl Microsoft-Windows-SetupUGC/Analytic
wevtutil.exe cl Microsoft-Windows-ShareMedia-ControlPanel/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-BootAnim/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-Common/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-CredUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-Logon/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-PasswordProvider/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-AuthUI-Shutdown/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-Core/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-DefaultPrograms/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shell-Shwebsvc
wevtutil.exe cl Microsoft-Windows-Shell-ZipFolder/Diagnostic
wevtutil.exe cl Microsoft-Windows-Shsvcs/Diagnostic
wevtutil.exe cl Microsoft-Windows-Sidebar/Diagnostic
wevtutil.exe cl Microsoft-Windows-Speech-UserExperience/Diagnostic
wevtutil.exe cl Microsoft-Windows-StickyNotes/Admin
wevtutil.exe cl Microsoft-Windows-StickyNotes/Debug
wevtutil.exe cl Microsoft-Windows-StickyNotes/Diagnostic
wevtutil.exe cl Microsoft-Windows-StorDiag/Operational
wevtutil.exe cl Microsoft-Windows-StorPort/Operational
wevtutil.exe cl Microsoft-Windows-Subsys-Csr/Operational
wevtutil.exe cl Microsoft-Windows-Subsys-SMSS/Operational
wevtutil.exe cl Microsoft-Windows-Superfetch/Main
wevtutil.exe cl Microsoft-Windows-Superfetch/StoreLog
wevtutil.exe cl Microsoft-Windows-Sysprep/Analytic
wevtutil.exe cl Microsoft-Windows-SystemHealthAgent/Diagnostic
wevtutil.exe cl Microsoft-Windows-TCPIP/Diagnostic
wevtutil.exe cl Microsoft-Windows-TSF-msctf/Debug
wevtutil.exe cl Microsoft-Windows-TSF-msctf/Diagnostic
wevtutil.exe cl Microsoft-Windows-TSF-msutb/Debug
wevtutil.exe cl Microsoft-Windows-TSF-msutb/Diagnostic
wevtutil.exe cl Microsoft-Windows-TZUtil/Operational
wevtutil.exe cl Microsoft-Windows-TaskScheduler/Debug
wevtutil.exe cl Microsoft-Windows-TaskScheduler/Diagnostic
wevtutil.exe cl Microsoft-Windows-TaskScheduler/Operational
wevtutil.exe cl Microsoft-Windows-TaskbarCPL/Diagnostic
wevtutil.exe cl Microsoft-Windows-TerminalServices-LocalSessionManager/Admin
wevtutil.exe cl Microsoft-Windows-TerminalServices-LocalSessionManager/Analytic
wevtutil.exe cl Microsoft-Windows-TerminalServices-LocalSessionManager/Debug
wevtutil.exe cl Microsoft-Windows-TerminalServices-LocalSessionManager/Operational
wevtutil.exe cl Microsoft-Windows-TerminalServices-MediaRedirection/Analytic
wevtutil.exe cl Microsoft-Windows-TerminalServices-PnPDevices/Admin
wevtutil.exe cl Microsoft-Windows-TerminalServices-PnPDevices/Analytic
wevtutil.exe cl Microsoft-Windows-TerminalServices-PnPDevices/Debug
wevtutil.exe cl Microsoft-Windows-TerminalServices-PnPDevices/Operational
wevtutil.exe cl Microsoft-Windows-TerminalServices-RDPClient/Analytic
wevtutil.exe cl Microsoft-Windows-TerminalServices-RDPClient/Debug
wevtutil.exe cl Microsoft-Windows-TerminalServices-RDPClient/Operational
wevtutil.exe cl Microsoft-Windows-TerminalServices-RdpSoundDriver/Capture
wevtutil.exe cl Microsoft-Windows-TerminalServices-RdpSoundDriver/Playback
wevtutil.exe cl Microsoft-Windows-TerminalServices-RemoteConnectionManager/Admin
wevtutil.exe cl Microsoft-Windows-TerminalServices-RemoteConnectionManager/Analytic
wevtutil.exe cl Microsoft-Windows-TerminalServices-RemoteConnectionManager/Debug
wevtutil.exe cl Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational
wevtutil.exe cl Microsoft-Windows-ThemeCPL/Diagnostic
wevtutil.exe cl Microsoft-Windows-ThemeUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-TunnelDriver
wevtutil.exe cl Microsoft-Windows-UAC-FileVirtualization/Operational
wevtutil.exe cl Microsoft-Windows-UAC/Operational
wevtutil.exe cl Microsoft-Windows-UIAnimation/Diagnostic
wevtutil.exe cl Microsoft-Windows-UIAutomationCore/Debug
wevtutil.exe cl Microsoft-Windows-UIAutomationCore/Diagnostic
wevtutil.exe cl Microsoft-Windows-UIAutomationCore/Perf
wevtutil.exe cl Microsoft-Windows-UIRibbon/Diagnostic
wevtutil.exe cl Microsoft-Windows-USB-USBHUB/Diagnostic
wevtutil.exe cl Microsoft-Windows-USB-USBPORT/Diagnostic
wevtutil.exe cl "Microsoft-Windows-User Control Panel Performance/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-User Profile Service/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-User Profile Service/Operational"
wevtutil.exe cl Microsoft-Windows-User-Loader/Analytic
wevtutil.exe cl Microsoft-Windows-UserModePowerService/Diagnostic
wevtutil.exe cl Microsoft-Windows-UserPnp/DeviceMetadata/Debug
wevtutil.exe cl Microsoft-Windows-UserPnp/DeviceNotifications
wevtutil.exe cl Microsoft-Windows-UserPnp/Performance
wevtutil.exe cl Microsoft-Windows-UserPnp/SchedulerOperations
wevtutil.exe cl Microsoft-Windows-UxTheme/Diagnostic
wevtutil.exe cl Microsoft-Windows-VAN/Diagnostic
wevtutil.exe cl Microsoft-Windows-VDRVROOT/Operational
wevtutil.exe cl Microsoft-Windows-VHDMP/Operational
wevtutil.exe cl Microsoft-Windows-VWiFi/Diagnostic
wevtutil.exe cl "Microsoft-Windows-Virtual PC/Admin"
wevtutil.exe cl Microsoft-Windows-VolumeControl/Performance
wevtutil.exe cl Microsoft-Windows-VolumeSnapshot-Driver/Operational
wevtutil.exe cl Microsoft-Windows-WABSyncProvider/Analytic
wevtutil.exe cl Microsoft-Windows-WCN-Config-Registrar/Diagnostic
wevtutil.exe cl Microsoft-Windows-WER-Diag/Operational
wevtutil.exe cl Microsoft-Windows-WFP/Analytic
wevtutil.exe cl Microsoft-Windows-WFP/Operational
wevtutil.exe cl Microsoft-Windows-WLAN-AutoConfig/Operational
wevtutil.exe cl Microsoft-Windows-WLAN-Autoconfig/Diagnostic
wevtutil.exe cl Microsoft-Windows-WLANConnectionFlow/Diagnostic
wevtutil.exe cl Microsoft-Windows-WMI-Activity/Trace
wevtutil.exe cl Microsoft-Windows-WMPDMCCore/Diagnostic
wevtutil.exe cl Microsoft-Windows-WMPDMCUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-WMPNSS-PublicAPI/Diagnostic
wevtutil.exe cl Microsoft-Windows-WMPNSS-Service/Diagnostic
wevtutil.exe cl Microsoft-Windows-WMPNSSUI/Diagnostic
wevtutil.exe cl Microsoft-Windows-WPD-ClassInstaller/Analytic
wevtutil.exe cl Microsoft-Windows-WPD-ClassInstaller/Operational
wevtutil.exe cl Microsoft-Windows-WPD-CompositeClassDriver/Analytic
wevtutil.exe cl Microsoft-Windows-WPD-CompositeClassDriver/Operational
wevtutil.exe cl Microsoft-Windows-WPD-MTPClassDriver/Operational
wevtutil.exe cl Microsoft-Windows-WSC-SRV/Diagnostic
wevtutil.exe cl Microsoft-Windows-WUSA/Debug
wevtutil.exe cl Microsoft-Windows-WWAN-MM-Events/Diagnostic
wevtutil.exe cl Microsoft-Windows-WWAN-NDISUIO-EVENTS/Diagnostic
wevtutil.exe cl Microsoft-Windows-WWAN-SVC-Events/Diagnostic
wevtutil.exe cl Microsoft-Windows-WWAN-UI-Events/Diagnostic
wevtutil.exe cl Microsoft-Windows-WebIO-NDF/Diagnostic
wevtutil.exe cl Microsoft-Windows-WebIO/Diagnostic
wevtutil.exe cl Microsoft-Windows-WebServices/Tracing
wevtutil.exe cl Microsoft-Windows-Win32k/Concurrency
wevtutil.exe cl Microsoft-Windows-Win32k/Power
wevtutil.exe cl Microsoft-Windows-Win32k/Render
wevtutil.exe cl Microsoft-Windows-Win32k/Tracing
wevtutil.exe cl Microsoft-Windows-Win32k/UIPI
wevtutil.exe cl Microsoft-Windows-WinHTTP-NDF/Diagnostic
wevtutil.exe cl Microsoft-Windows-WinHttp/Diagnostic
wevtutil.exe cl Microsoft-Windows-WinINet/Analytic
wevtutil.exe cl Microsoft-Windows-WinRM/Analytic
wevtutil.exe cl Microsoft-Windows-WinRM/Debug
wevtutil.exe cl Microsoft-Windows-WinRM/Operational
wevtutil.exe cl Microsoft-Windows-Windeploy/Analytic
wevtutil.exe cl "Microsoft-Windows-Windows Defender/Operational"
wevtutil.exe cl "Microsoft-Windows-Windows Defender/WHC"
wevtutil.exe cl 'Microsoft-Windows-Windows Firewall With Advanced Security/ConnectionSecurity"
wevtutil.exe cl "Microsoft-Windows-Windows Firewall With Advanced Security/ConnectionSecurityVerbose"
wevtutil.exe cl 'Microsoft-Windows-Windows Firewall With Advanced Security/Firewall"
wevtutil.exe cl 'Microsoft-Windows-Windows Firewall With Advanced Security/FirewallVerbose"
wevtutil.exe cl Microsoft-Windows-WindowsBackup/ActionCenter
wevtutil.exe cl Microsoft-Windows-WindowsColorSystem/Debug
wevtutil.exe cl Microsoft-Windows-WindowsColorSystem/Operational
wevtutil.exe cl Microsoft-Windows-WindowsSystemAssessmentTool/Operational
wevtutil.exe cl Microsoft-Windows-WindowsSystemAssessmentTool/Tracing
wevtutil.exe cl Microsoft-Windows-WindowsUpdateClient/Operational
wevtutil.exe cl Microsoft-Windows-Wininit/Diagnostic
wevtutil.exe cl Microsoft-Windows-Winlogon/Diagnostic
wevtutil.exe cl Microsoft-Windows-Winlogon/Operational
wevtutil.exe cl Microsoft-Windows-Winsock-AFD/Operational
wevtutil.exe cl Microsoft-Windows-Winsock-WS2HELP/Operational
wevtutil.exe cl Microsoft-Windows-Winsrv/Analytic
wevtutil.exe cl Microsoft-Windows-Wired-AutoConfig/Diagnostic
wevtutil.exe cl Microsoft-Windows-Wired-AutoConfig/Operational
wevtutil.exe cl Microsoft-Windows-Wordpad/Admin
wevtutil.exe cl Microsoft-Windows-Wordpad/Debug
wevtutil.exe cl Microsoft-Windows-Wordpad/Diagnostic
wevtutil.exe cl Microsoft-Windows-mobsync/Diagnostic
wevtutil.exe cl Microsoft-Windows-ntshrui
wevtutil.exe cl Microsoft-Windows-osk/Diagnostic
wevtutil.exe cl Microsoft-Windows-stobject/Diagnostic
wevtutil.exe cl ODiag
wevtutil.exe cl OSession
wevtutil.exe cl Security
wevtutil.exe cl Setup
wevtutil.exe cl System
wevtutil.exe cl TabletPC_InputPanel_Channel
wevtutil.exe cl WMPSetup
wevtutil.exe cl WMPSyncEngine
wevtutil.exe cl "Windows PowerShell"

-------cut above this line-----------

Discussion is locked
You are posting a reply to: Delete all event logs at once in Windows 7
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: Delete all event logs at once in Windows 7
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
I'm left wondering
by Jimmy Greystone / January 14, 2010 12:57 AM PST

I'm left wondering how clearing out event logs, which are designed to AID in troubleshooting, somehow makes the process easier. You lose all the historical context of events leading up to a problem, which can be VITAL to figuring out the problem.

You should be able to create your own custom log views and filter out the noise you're not interested in. Why are you insisting on using an outmoded and less effective method when a better one is staring you right in the face? Take the time to learn how to properly use the revamped event viewer, and I think you'll look back one day and laugh about how you had to fumble around in the dark before.

Collapse -
Because sometimes it just makes sense to clear it all out...
by S13013E / January 14, 2010 5:47 AM PST
In reply to: I'm left wondering

With over 20 years experience, there comes a time to clear out the event logs. Yes, they are extremely valuable in troubleshooting and keeping a log, more so in a corporate environment. And yes of course you can create your own custom views to aggtregrate the information to your liking. And yes, occasionally it's nice to simply dump them all after making changes to view a nice clean log.

Your response is rather condensending and pretty close minded. If you have no need for such a feature then don't use. After all, the option to clear one log out at a time is built in and standard for all the seperate logs, this is just a script to clean house more efficiently..

Unless you take the time to customize the way your logs behave, it's very possible for them to stop recording events once they become full. And why anyone would want to hold on to all their event logs for an indefinite amount of time is beyond me (unless it's mandatory for regulation purposes) but on a home computer, check yourself and your attitude next time....

And I wasn't insisting on anything.

Collapse -
Not for the novice
by TaraS_WinTeam / January 14, 2010 8:36 AM PST

Thank you for pointing out clearing out the event log is not a solution for a novice, and the information stored is helpful for troubleshooting ( There is not a utility for such activity but it sounds you have found a work around that works for you. Generally we recommend less invasive practices for streamlining and increasing speed and performance:


Collapse -
Well that was close but no cigar, :)
by Dango517 / January 15, 2010 5:57 PM PST
In reply to: Not for the novice

Path is Start> Control panel > Performance information and tools and then One needs to click the link "Open disk clean", in the top right corner then choose a drive then click error log files (file names will vary from Windows OS to OS.).

Shall we watch these two fight it out a bit longer? Grin

Fight!!!! Fight!!!!

This thread untracked

Collapse -
by S13013E / January 15, 2010 9:37 PM PST

I don't really get the point of this post. It doesn't have anything to do with clearing out the event logs but the animation was cool.

Collapse -
Cleaning Old Log Reports from Event viewer
by John Butler / August 28, 2011 10:13 PM PDT

Unfortunately your solution is useless in windows 7 ultimate. All the custom views are left with all the stale old entries.
I suggest you revist the subject becaue the problem of infinitely expanding custom vew of log files is a real one
Best of luck

Collapse -
by Jimmy Greystone / January 14, 2010 8:42 AM PST

Well, probably 99% of people don't even know that the Event Log exists, so they aren't going to care about cleaning it out. The poor sod that they call to come fix their computer when they screw something up... THAT might be a different story. Work in IT long enough, and you quickly come to learn that people lie to try and cover their stupidity. "I didn't change anything" is one of the most common lies. Sometimes it is true, but the vast majority of the time you can translate that to, "I know it said DO NOT TOUCH, but it was red and shiny! I just couldn't help myself!"

The Event Logs can be a vital tool for the person called in to fix the system to reconstruct what happened.

If you want to flush your logs, that's your business. But trying to promote it as some kind of a good thing and adding in a little technical language will cause plenty of people to enter into what is lovingly referred to by some as Dummy Mode. Whereby people will believe/do pretty much anything you say.

Sure, there are some instances where flushing the logs is useful, but that pretty much doesn't apply to the average user. The sort of person who frequents these forums. The technically clueless, who have trouble working a toaster, and the Dilbert PHB type who are impressed by anything on glossy paper with lots of technical terms. THAT is the primary audience for CNet. People who have never even HEARD of a batch file, let alone be able to tell that is what you posted.

And I have no attitude except the one you are projecting onto my post. Maybe instead of lashing out at others, you should reflect upon these paranoid tendencies you seem to have.

Collapse -
You vs. Me?
by S13013E / January 14, 2010 10:07 AM PST
In reply to: Well

Look, I make no assumptins about CNEt users, you're here, I'm here, I'm sure we're not the only two on all of CNet that understand my initial post. But you did come on and make it sound like I was pushing drugs on to unsuspecting children.

I simply made a very easy, not very creative or difficult batch file The hardest part (after finding the command to use) was writing it due to so many event logs.

As an IT professional, I found it useful for the rare times it could be useful and really just wanted to share with the community. I make no assumptions what the average user knows or doesn't know about their PC. And yes, I have had my fair share of nightmare users.

We all know people do stupid things to their computers but most of the time, if they don't understand what they are reading or what a batch file is, I think they'd ignore this or make a batch file that won't work and possibly ask questions here and maybe learn something. It's not like it can damage their system.

Me? I was pretty happy I got around to putting it in writing. I posted this same thing to technet and techrepublic. (memeber of both) and thought I'd share it here. I can asure you, no one complained (yet).

You? I felt you attack me in the first post with a response that was not very well thought out or professional. And your second response certainly confirms that you have some unresolved issues with me.

I posted to a public forum. If anyone has any questions, they can respond here or email me. I'd be happy to explain what a batch file is and why you might want to write some of your own for simpler tasks. I get a lot more enjoyment out of life helping people do things better or learning a better way to do things from others, not getting involved in a flame war on a cnet forum.

Collapse -
clearing out event logs
by slshippee / November 16, 2010 3:55 AM PST
In reply to: You vs. Me?

Since I was interested in cleaning out event logs on server 2008, and those event logs are different than for Windows 7, in a command prompt I merely performed:

wevtutil el > del_evt_logs.cmd

which gives all event logs for Windows Server 2008, then do a search and replace to insert the wevtutil cl at the beginning of each line, ending with quoting those lines with spaces in them.

I find it much easier to clean logs out periodically rather than keep too much junk for too long. If you are getting "red x's" or "yellow !'s" there will soon enough be many more of them for your review.

Thanks to the original poster, I think the trick is to keep them in manageable amounts.

Collapse -
There is an easy way to create the file.
by pdmckplus1 / November 20, 2011 4:47 AM PST
In reply to: You vs. Me?

If you use the command "wevtutil el>ClearAllWindows7EventLogsCommandFile.txt" it will create a list of all of the log files that are currently on your computer (and they vary according to what is loaded on the box). Then use a text editor that can search and replace on the end-of-line/paragraph character and replace it with a quote character followed by the end-of-line/paragraph character and "wevtutil.exe cl " and a closing quote character (in MS Word it would look like "^pwevtutil.exe cl ". That puts quotes around all of the log names and adds the command to clear the log in front. You do have to manually add the command to the first line of the the list. Then just rename it as a .cmd file and your good to go. Thanks for the idea though, saved me a hoop of time clearing the dang logs.

Collapse -
Use It All The Time
by lsrvhayes / July 22, 2012 2:26 AM PDT
In reply to: You vs. Me?

I use a similar cmd to clear the event logs all the time. Not for extra space or anything but for the simple fact that when you reboot anything in the event viewer is from that boot. I had to post a reply, couldn't help it. Same thing happened to me when posting in a forum not long ago. I was just trying to be helpful. Happy I did notice the date of this post. I was wondering if you have any other cool and helpful cmd lines or tips. Thanks

Collapse -
by mewgirl / October 26, 2010 9:32 AM PDT
In reply to: Well

Actually, since Event Logs are typically completely useless, deleting them makes the most sense.

Collapse -
Delete all event logs at once in Windows 7
by John Butler / August 28, 2011 8:46 PM PDT

Very helpful post. I have previously laboured long with clearing the custom viewer which collects and stores so much information from the day one installs Win 7 that it is useless if not cleared.
Two suggestions
Change "cut" to "copy" as in Explorer 9 64bit it won't "cut" and change the file type to "ini" not bat" as the latter will fire off before one has time to run as administrator
Thanks for a valuable contribution
Best wishes
Uncle John

Collapse -
Delete all event logs at once in Windows 7
by John Butler / August 28, 2011 10:57 PM PDT

You are right and your solution is very good though it misses a couple of logs - no wonder there are so many.
If the custom view of the event log is not regularly cleaned out it is absolutely useless and in any days work there are hundreds of entries.

Collapse -
Post deleted.
by MarkFlax Forum moderator / April 29, 2010 2:46 AM PDT
In reply to: I'm left wondering

No need for name calling in these forums.


Collapse -
Very useful to me.
by Rider3 / January 14, 2010 9:23 PM PST

I found your batch file very useful to me. However, I do use it selectively, as in the ?Application? and ?System? logs.

Made it easier for me to make a change to a program, clear the ?Application? and ?System? logs, all from the desktop, reboot and check the logs without going through a ton of unrelated items.

It saved me time getting rid of that "SideBySide" error I had on every computer!


Collapse -
Your Welcome
by S13013E / January 15, 2010 1:58 AM PST
In reply to: Very useful to me.

I have been working systematically to get rid of severl side by side errors. I'd be interested in how you are getting rid of them all. I have been able to eliminate several, but I've not found a solution to others. I use the batch file for the same purpose with out having to customize the event log...

Collapse -
Mine were due
by Rider3 / January 15, 2010 3:21 AM PST
In reply to: Your Welcome

to installing Windows Live Essentials.
By uninstalling the mail, tool bar, sync, sign-in, and leaving only the movie maker and photo gallery, I was able to rid the error.

However, I understand that on 64bit, the movie maker calls for a 32bit dll, which isn't there, but loads a correct one and runs, but shows the error.
Supposedly, MS knows this and says to disregard the error.

Collapse -
by S13013E / January 15, 2010 4:59 AM PST
In reply to: Mine were due

I saw those in my research but they aren't the ones I'm getting. I'm getting this error about Adobe Air. I was getting another about Adobe Designer which require I edit an xml file. I haven't seen amy side by side errors today, hopefully they are all gone now. My administrative events are just about clean. Only one more to go and I think it's one of those "ignore this error" events as well.Thanks for the response...

Collapse -
Try this - System Update Readiness Tool for Vista Win-7 etc.
by jharris1993 / May 1, 2011 9:11 AM PDT
In reply to: Your Welcome

I, too, have run into some really "odd-ball" errors that seem to just zone-in from Outer Space and my best efforts are met with frustration.

The vast majority of the times, I usually find excellent and competent answers on sites like this one - for which I am eternally grateful.

One "trick" I discovered this way was a tool that Microsoft released called the "System Update Readiness Tool". Despite what the title says, this particular tool is useful for a whole host of other things as well,

As Microsoft's own KB article on this says, there are certain essential "system" related areas of the registry and the new "System Update Layer" built into everything from Windows Vista on forward that can become "inconsistent" (corrupted? damaged?) by the simple fact of downloading updates, or even the tremendously dangerous task of merely using a system on a day-by-day basis.

This tool (it calls itself a "hot-fix" when you run it), checks these areas, finds inconsistencies, and (if possible) attempts to repair them.

I have used this tool on systems that I received that were Virus Museums, where I had to surgically remove some of the vile beasties - thread by thread - carefully removing them from the Registry. Often, when done the system would run, but would have "issues". Running this tool cleaned things up nicely.

I recommend it as a way to make sure the critical system parts of the registry are consistent - even as a maintenance item - and especially if you have weirdo - odd-ball problems.

You can find out all about it here:

What say ye?


Collapse -
Also useful to me
by jharris1993 / May 1, 2011 8:55 AM PDT
In reply to: Very useful to me.

I also found this quite useful. Thanks!

Re: Clearing logs periodically.

IMHO, I feel that periodically clearing logs is an important part of system housekeeping and general maintenance.

Additionally, I find that when I am chasing down a particular problem, clearing logs allows me to concentrate on what's happening right now without things being cluttered with a lot of (relatively) irrelevant entries.

It has also been my experience that when I want to run dcpromo - or one of the prerequisite utilities, having pristine logs is an absolute must! I clear logs, reboot the box(es) in question, look for errors, let them stew for a day or two, etc. Then re-clear logs before running the promotion once I am satisfied that everything is Four-Oh.

Far be it from me to tell anyone how to run their shop. If you like to periodically clear out the cruft, fine! Likewise, if you want to have entries in your logs that go back to the Dawn of Mankind, that's OK too. Though, (IMHO), if *I* were that interested in all those older log entries, I'd save-and-clear.

What say ye?


Collapse -
Umm, EASIER way...
by whyszat / August 15, 2010 7:48 AM PDT

Try this - MUCH easier and works on Vista, 7 and SERVERS:

(from a command prompt, type)
for /f %x in ('wevtutil el') do wevtutil cl "%x"

Does all logs, one shot (even if new logs show up later) no editing clumsy batch files.

Good try though. Happy

Collapse -
There It Is !
by lsrvhayes / July 22, 2012 2:30 AM PDT
In reply to: Umm, EASIER way...

Yep, I've been looking for this cmd. Works like a charm. Thanks

Collapse -
by mewgirl / October 26, 2010 9:34 AM PDT

Great, now all we need is to figure out how to disable them... sure it can be disabled in services but due to the extremely specific nature of these logs I'm not sure if that would stop them all...

Collapse -
Simplest way
by a_n_egorenkov / November 8, 2010 11:53 PM PST

in cmd with admin rights:
for /F "tokens=*" %1 in ('wevtutil.exe el') DO wevtutil.exe cl "%1"

Collapse -
suppose to be easy :)
by Talk-SFNT / December 27, 2010 2:36 AM PST

FOR /F "usebackq delims==" %i IN (`wevtutil el`) DO wevtutil cl "%i"

Collapse -
deletion of all logs
by dexxus / June 2, 2011 10:54 AM PDT

awesome initial post and replies by S13013E!

here is the batch to clean all logs (the FOR loop will miss a few on my system):

@echo off

@echo Clearing event logs...

@for /f %%i in ( 'wevtutil el' ) do wevtutil cl "%%i" >NUL 2>&1

wevtutil.exe cl "Microsoft-Windows-Diagnosis-DPS/Operational"
wevtutil.exe cl "Microsoft-Windows-User Profile Service/Operational"
wevtutil.exe cl "Microsoft-Windows-Windows Defender/Operational"
wevtutil.exe cl "Microsoft-Windows-Windows Defender/WHC"
wevtutil.exe cl "Microsoft-Windows-Windows Firewall With Advanced Security/Firewall"
wevtutil.exe cl System

Collapse -
Even easier
by SergeyMorsin / August 5, 2012 4:47 AM PDT
In reply to: deletion of all logs

An even easier command line that does not "miss" any logs:

@for /f "delims=," %%i in ( 'wevtutil el' ) do wevtutil cl "%%i" >NUL 2>&1

Microsoft can create additional logs with spaces in their names (that delimits tokens in "for" loop by default), but we can trick them by telling command interpreter to use a delimiter that never can be in any log names. Now entire strings are always used as log names

Collapse -
by alanmm21 / June 3, 2011 4:43 PM PDT

For me it is very useful.

Collapse -
by lothyr / July 26, 2012 7:11 PM PDT

Just what I was hoping to find...Going to try it now.
Win 7 x64 Ultimate

AIDA64 reports include ALL these events and such like...Totally unnecessary at this point.

overclock stabilized, now I want fresh logs from this point on, why have old logs cluttering up the works?

Thanks so much.

Popular Forums
Computer Help 49,613 discussions
Computer Newbies 10,349 discussions
Laptops 19,436 discussions
Security 30,426 discussions
TVs & Home Theaters 20,308 discussions
Windows 10 360 discussions
Phones 15,802 discussions
Windows 7 7,351 discussions
Networking & Wireless 14,641 discussions

CNET Holiday Gift Guide

Looking for great gifts under $100?

Trendy tech gifts don't require a hefty price tag. Choose from these CNET-recommended useful and high-quality gadgets.