@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q  %systemdrive%\*.tmp
del /f /s /q  %systemdrive%\*._mp
del /f /s /q  %systemdrive%\*.log
del /f /s /q  %systemdrive%\*.gid
del /f /s /q  %systemdrive%\*.chk
del /f /s /q  %systemdrive%\*.old
del /f /s /q  %systemdrive%\recycled\*.*
del /f /s /q  %windir%\*.bak
del /f /s /q  %windir%\prefetch\*.*
rd /s /q %windir%\temp & md  %windir%\temp
del /f /q  %userprofile%\cookies\*.*
del /f /q  %userprofile%\recent\*.*
del /f /s /q  "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q  "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q  "%userprofile%\recent\*.*"
echo 清除系统LJ完成!
echo. & pause

保存:清除系统LJ.bat

双击运行。

@ECHO OFF
TITLE 清除所有事件查看器里看到的EventLog日志,中途提示出错不用关注
ECHO.
ECHO 柳永法 2012-1-29 12:05:30
ECHO.
FOR /F %%I IN ('WEVTUTIL EL') DO (WEVTUTIL CL %%I)
PAUSE 

保存为WindowsEventLog.ClearAll.cmd 双击执行

当直接在cmd中运行,不能使用%%,而是应该%。

当保存成bat文件时,需要用%%

wevtutil.exe cl "Application"
wevtutil.exe cl "HardwareEvents"
wevtutil.exe cl "Internet Explorer"
wevtutil.exe cl "Key Management Service"
wevtutil.exe cl "Microsoft-AppV-Client/Admin"
wevtutil.exe cl "Microsoft-AppV-Client/Operational"
wevtutil.exe cl "Microsoft-AppV-Client/Virtual Applications"
wevtutil.exe cl "Microsoft-User Experience Virtualization-Agent Driver/Operational"
wevtutil.exe cl "Microsoft-User Experience Virtualization-App Agent/Operational"
wevtutil.exe cl "Microsoft-User Experience Virtualization-IPC/Operational"
wevtutil.exe cl "Microsoft-User Experience Virtualization-SQM Uploader/Operational"
wevtutil.exe cl "Microsoft-Windows-AAD/Operational"
wevtutil.exe cl "Microsoft-Windows-All-User-Install-Agent/Admin"
wevtutil.exe cl "Microsoft-Windows-AllJoyn/Operational"
wevtutil.exe cl "Microsoft-Windows-AppHost/Admin"
wevtutil.exe cl "Microsoft-Windows-AppID/Operational"
wevtutil.exe cl "Microsoft-Windows-ApplicabilityEngine/Operational"
wevtutil.exe cl "Microsoft-Windows-Application Server-Applications/Operational"
wevtutil.exe cl "Microsoft-Windows-Application Server-Applications/Admin"
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-Telemetry"
wevtutil.exe cl "Microsoft-Windows-Application-Experience/Steps-Recorder"
wevtutil.exe cl "Microsoft-Windows-ApplicationResourceManagementSystem/Operational"
wevtutil.exe cl "Microsoft-Windows-AppLocker/EXE and DLL"
wevtutil.exe cl "Microsoft-Windows-AppLocker/MSI and Script"
wevtutil.exe cl "Microsoft-Windows-AppLocker/Packaged app-Deployment"
wevtutil.exe cl "Microsoft-Windows-AppLocker/Packaged app-Execution"
wevtutil.exe cl "Microsoft-Windows-AppModel-Runtime/Admin"
wevtutil.exe cl "Microsoft-Windows-AppReadiness/Admin"
wevtutil.exe cl "Microsoft-Windows-AppReadiness/Operational"
wevtutil.exe cl "Microsoft-Windows-TWinUI/Operational"
wevtutil.exe cl "Microsoft-Windows-CoreApplication/Operational"
wevtutil.exe cl "Microsoft-Windows-AppXDeployment/Operational"
wevtutil.exe cl "Microsoft-Windows-AppXDeploymentServer/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-Scripted/Operational"
wevtutil.exe cl "Microsoft-Windows-AppXDeploymentServer/Restricted"
wevtutil.exe cl "Microsoft-Windows-AppxPackaging/Operational"
wevtutil.exe cl "Microsoft-Windows-ASN1/Operational"
wevtutil.exe cl "Microsoft-Windows-AssignedAccess/Admin"
wevtutil.exe cl "Microsoft-Windows-AssignedAccess/Operational"
wevtutil.exe cl "Microsoft-Windows-AssignedAccessBroker/Admin"
wevtutil.exe cl "Microsoft-Windows-Storage-ATAPort/Admin"
wevtutil.exe cl "Microsoft-Windows-Storage-ATAPort/Operational"
wevtutil.exe cl "Microsoft-Windows-Audio/CaptureMonitor"
wevtutil.exe cl "Microsoft-Windows-Audio/Operational"
wevtutil.exe cl "Microsoft-Windows-FMS/Operational"
wevtutil.exe cl "Microsoft-Windows-Audio/PlaybackManager"
wevtutil.exe cl "Microsoft-Windows-Authentication User Interface/Operational"
wevtutil.exe cl "Microsoft-Windows-BackgroundTaskInfrastructure/Operational"
wevtutil.exe cl "Microsoft-Windows-Backup"
wevtutil.exe cl "Microsoft-Windows-Biometrics/Operational"
wevtutil.exe cl "Microsoft-Windows-BitLocker/BitLocker Management"
wevtutil.exe cl "Microsoft-Windows-BitLocker-DrivePreparationTool/Admin"
wevtutil.exe cl "Microsoft-Windows-BitLocker-DrivePreparationTool/Operational"
wevtutil.exe cl "Microsoft-Windows-Bits-Client/Operational"
wevtutil.exe cl "Microsoft-Windows-Bluetooth-BthLEPrepairing/Operational"
wevtutil.exe cl "Microsoft-Windows-Bluetooth-MTPEnum/Operational"
wevtutil.exe cl "Microsoft-Windows-BranchCache/Operational"
wevtutil.exe cl "Microsoft-Windows-BranchCacheSMB/Operational"
wevtutil.exe cl "Microsoft-Windows-Regsvr32/Operational"
wevtutil.exe cl "Microsoft-Windows-CertificateServicesClient-Lifecycle-System/Operational"
wevtutil.exe cl "Microsoft-Windows-CertificateServicesClient-Lifecycle-User/Operational"
wevtutil.exe cl "Microsoft-Client-Licensing-Platform/Admin"
wevtutil.exe cl "Microsoft-Windows-CloudStorageWizard/Operational"
wevtutil.exe cl "Microsoft-Windows-CodeIntegrity/Operational"
wevtutil.exe cl "Microsoft-Windows-Compat-Appraiser/Operational"
wevtutil.exe cl "Microsoft-Windows-Containers-Wcifs/Operational"
wevtutil.exe cl "Microsoft-Windows-Containers-Wcnfs/Operational"
wevtutil.exe cl "Microsoft-Windows-CoreSystem-SmsRouter-Events/Operational"
wevtutil.exe cl "Microsoft-Windows-CorruptedFileRecovery-Client/Operational"
wevtutil.exe cl "Microsoft-Windows-CorruptedFileRecovery-Server/Operational"
wevtutil.exe cl "Microsoft-Windows-Crypto-DPAPI/BackUpKeySvc"
wevtutil.exe cl "Microsoft-Windows-Crypto-DPAPI/Operational"
wevtutil.exe cl "Microsoft-Windows-DAL-Provider/Operational"
wevtutil.exe cl "Microsoft-Windows-DataIntegrityScan/Admin"
wevtutil.exe cl "Microsoft-Windows-DataIntegrityScan/CrashRecovery"
wevtutil.exe cl "Microsoft-Windows-DateTimeControlPanel/Operational"
wevtutil.exe cl "Microsoft-Windows-Deduplication/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-Deduplication/Operational"
wevtutil.exe cl "Microsoft-Windows-Deduplication/Scrubbing"
wevtutil.exe cl "Microsoft-Windows-DSC/Admin"
wevtutil.exe cl "Microsoft-Windows-DSC/Operational"
wevtutil.exe cl "Microsoft-Windows-DeviceGuard/Operational"
wevtutil.exe cl "Microsoft-Windows-DeviceManagement-Enterprise-Diagnostics-Provider/Admin"
wevtutil.exe cl "Microsoft-Windows-Devices-Background/Operational"
wevtutil.exe cl "Microsoft-Windows-DeviceSetupManager/Admin"
wevtutil.exe cl "Microsoft-Windows-DeviceSetupManager/Operational"
wevtutil.exe cl "Microsoft-Windows-DeviceSync/Operational"
wevtutil.exe cl "Microsoft-Windows-Dhcp-Client/Admin"
wevtutil.exe cl "Microsoft-Windows-Dhcpv6-Client/Admin"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-DPS/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-PCW/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-PLA/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-Scheduled/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-Scripted/Admin"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-Scripted/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnosis-ScriptedDiagnosticsProvider/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnostics-Networking/Operational"
wevtutil.exe cl "Microsoft-Windows-Diagnostics-Performance/Operational"
wevtutil.exe cl "Microsoft-Windows-DiskDiagnosticDataCollector/Operational"
wevtutil.exe cl "Microsoft-Windows-DiskDiagnosticResolver/Operational"
wevtutil.exe cl "Microsoft-Windows-EapHost/Operational"
wevtutil.exe cl "Microsoft-Windows-EapMethods-RasChap/Operational"
wevtutil.exe cl "Microsoft-Windows-EapMethods-RasTls/Operational"
wevtutil.exe cl "Microsoft-Windows-EapMethods-Sim/Operational"
wevtutil.exe cl "Microsoft-Windows-EapMethods-Ttls/Operational"
wevtutil.exe cl "Microsoft-Windows-EDP-Audit-Regular/Admin"
wevtutil.exe cl "Microsoft-Windows-EDP-Audit-TCB/Admin"
wevtutil.exe cl "Microsoft-Windows-EmbeddedAppLauncher/Admin"
wevtutil.exe cl "Microsoft-Windows-EventCollector/Operational"
wevtutil.exe cl "Microsoft-Windows-Forwarding/Operational"
wevtutil.exe cl "Microsoft-Windows-Fault-Tolerant-Heap/Operational"
wevtutil.exe cl "Microsoft-Windows-FileHistory-Core/WHC"
wevtutil.exe cl "Microsoft-Windows-FileHistory-Engine/BackupLog"
wevtutil.exe cl "Microsoft-Windows-FMS/Operational"
wevtutil.exe cl "Microsoft-Windows-Folder Redirection/Operational"
wevtutil.exe cl "Microsoft-Windows-GenericRoaming/Admin"
wevtutil.exe cl "Microsoft-Windows-GroupPolicy/Operational"
wevtutil.exe cl "Microsoft-Windows-Help/Operational"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Control Panel/Operational"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Provider Service/Operational"
wevtutil.exe cl "Microsoft-Windows-HomeGroup Listener Service/Operational"
wevtutil.exe cl "Microsoft-Windows-HotspotAuth/Operational"
wevtutil.exe cl "Microsoft-Windows-Hyper-V-Guest-Drivers/Admin"
wevtutil.exe cl "Microsoft-Windows-IdCtrls/Operational"
wevtutil.exe cl "Microsoft-Windows-International/Operational"
wevtutil.exe cl "Microsoft-Windows-International-RegionalOptionsControlPanel/Operational"
wevtutil.exe cl "Microsoft-Windows-Iphlpsvc/Operational"
wevtutil.exe cl "Microsoft-Windows-KdsSvc/Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-ApphelpCache/Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-Boot/Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-EventTracing/Admin"
wevtutil.exe cl "Microsoft-Windows-Kernel-IO/Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-PnP/Configuration"
wevtutil.exe cl "Microsoft-Windows-Kernel-Power/Thermal-Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-ShimEngine/Operational"
wevtutil.exe cl "Microsoft-Windows-Kernel-StoreMgr/Operational"
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-LanguagePackSetup/Operational"
wevtutil.exe cl "Microsoft-Windows-LiveId/Operational"
wevtutil.exe cl "Microsoft-Windows-MemoryDiagnostics-Results/Debug"
wevtutil.exe cl "Microsoft-Windows-Mobile-Broadband-Experience-Parser-Task/Operational"
wevtutil.exe cl "SMSApi"
wevtutil.exe cl "Microsoft-Windows-Mobile-Broadband-Experience-SmsRouter/Admin"
wevtutil.exe cl "Microsoft-Windows-Mprddm/Operational"
wevtutil.exe cl "Microsoft-Windows-MUI/Admin"
wevtutil.exe cl "Microsoft-Windows-MUI/Operational"
wevtutil.exe cl "Microsoft-Windows-NcdAutoSetup/Operational"
wevtutil.exe cl "Microsoft-Windows-NCSI/Operational"
wevtutil.exe cl "Microsoft-Windows-NdisImPlatform/Operational"
wevtutil.exe cl "Microsoft-Windows-NetworkProfile/Operational"
wevtutil.exe cl "Microsoft-Windows-NetworkProvider/Operational"
wevtutil.exe cl "Microsoft-Windows-NetworkProvisioning/Operational"
wevtutil.exe cl "Microsoft-Windows-NlaSvc/Operational"
wevtutil.exe cl "Microsoft-Windows-Ntfs/Operational"
wevtutil.exe cl "Microsoft-Windows-Ntfs/WHC"
wevtutil.exe cl "Microsoft-Windows-NTLM/Operational"
wevtutil.exe cl "Microsoft-Windows-OfflineFiles/Operational"
wevtutil.exe cl "Microsoft-Windows-OneBackup/Debug"
wevtutil.exe cl "Microsoft-Windows-OOBE-Machine-DUI/Operational"
wevtutil.exe cl "Microsoft-Windows-PackageStateRoaming/Operational"
wevtutil.exe cl "Microsoft-Windows-ParentalControls/Operational"
wevtutil.exe cl "Microsoft-Windows-Partition/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-PerceptionRuntime/Operational"
wevtutil.exe cl "Microsoft-Windows-PerceptionSensorDataService/Operational"
wevtutil.exe cl "Microsoft-Windows-Policy/Operational"
wevtutil.exe cl "Microsoft-Windows-PowerShell/Admin"
wevtutil.exe cl "Microsoft-Windows-PowerShell/Operational"
wevtutil.exe cl "Microsoft-Windows-PowerShell-DesiredStateConfiguration-FileDownloadManager/Operational"
wevtutil.exe cl "Microsoft-Windows-NetworkLocationWizard/Operational"
wevtutil.exe cl "Microsoft-Windows-PrintBRM/Admin"
wevtutil.exe cl "Microsoft-Windows-PrintService/Admin"
wevtutil.exe cl "Microsoft-Windows-Program-Compatibility-Assistant/CompatAfterUpgrade"
wevtutil.exe cl "Microsoft-Windows-Provisioning-Diagnostics-Provider/Admin"
wevtutil.exe cl "Microsoft-Windows-PushNotification-Platform/Admin"
wevtutil.exe cl "Microsoft-Windows-PushNotification-Platform/Operational"
wevtutil.exe cl "Microsoft-Windows-ReadyBoost/Operational"
wevtutil.exe cl "Microsoft-Windows-ReadyBoostDriver/Operational"
wevtutil.exe cl "Microsoft-Windows-RemoteApp and Desktop Connections/Admin"
wevtutil.exe cl "Microsoft-Windows-RemoteApp and Desktop Connections/Operational"
wevtutil.exe cl "Microsoft-Windows-RemoteAssistance/Admin"
wevtutil.exe cl "Microsoft-Windows-RemoteAssistance/Operational"
wevtutil.exe cl "Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Admin"
wevtutil.exe cl "Microsoft-Windows-RemoteDesktopServices-RdpCoreTS/Operational"
wevtutil.exe cl "Microsoft-Windows-RemoteDesktopServices-RemoteFX-Synth3dvsc/Admin"
wevtutil.exe cl "Microsoft-Windows-RemoteDesktopServices-SessionServices/Operational"
wevtutil.exe cl "Microsoft-Windows-Resource-Exhaustion-Detector/Operational"
wevtutil.exe cl "Microsoft-Windows-Resource-Exhaustion-Resolver/Operational"
wevtutil.exe cl "Microsoft-Windows-RestartManager/Operational"
wevtutil.exe cl "Microsoft-Windows-RetailDemo/Admin"
wevtutil.exe cl "Microsoft-Windows-RetailDemo/Operational"
wevtutil.exe cl "Microsoft-Windows-ScmBus/Certification"
wevtutil.exe cl "Microsoft-Windows-ScmDisk0101/Operational"
wevtutil.exe cl "Microsoft-Windows-Security-Audit-Configuration-Client/Operational"
wevtutil.exe cl "Microsoft-Windows-Security-EnterpriseData-FileRevocationManager/Operational"
wevtutil.exe cl "Microsoft-Windows-Security-Netlogon/Operational"
wevtutil.exe cl "Microsoft-Windows-Security-SPP-UX-GenuineCenter-Logging/Operational"
wevtutil.exe cl "Microsoft-Windows-Security-SPP-UX-Notifications/ActionCenter"
wevtutil.exe cl "Microsoft-Windows-Security-UserConsentVerifier/Audit"
wevtutil.exe cl "Microsoft-Windows-SENSE/Operational"
wevtutil.exe cl "Microsoft-Windows-SettingSync/Debug"
wevtutil.exe cl "Microsoft-Windows-SettingSync/Operational"
wevtutil.exe cl "Microsoft-Windows-SettingSync-Azure/Debug"
wevtutil.exe cl "Microsoft-Windows-SettingSync-Azure/Operational"
wevtutil.exe cl "Microsoft-Windows-Shell-ConnectedAccountState/ActionCenter"
wevtutil.exe cl "Microsoft-Windows-Shell-Core/ActionCenter"
wevtutil.exe cl "Microsoft-Windows-Shell-Core/AppDefaults"
wevtutil.exe cl "Microsoft-Windows-Shell-Core/LogonTasksChannel"
wevtutil.exe cl "Microsoft-Windows-Shell-Core/Operational"
wevtutil.exe cl "Microsoft-Windows-SmartCard-Audit/Authentication"
wevtutil.exe cl "Microsoft-Windows-SmartCard-DeviceEnum/Operational"
wevtutil.exe cl "Microsoft-Windows-SmartCard-TPM-VCard-Module/Admin"
wevtutil.exe cl "Microsoft-Windows-SmartCard-TPM-VCard-Module/Operational"
wevtutil.exe cl "Microsoft-Windows-SmbClient/Connectivity"
wevtutil.exe cl "Microsoft-Windows-SMBClient/Operational"
wevtutil.exe cl "Microsoft-Windows-SmbClient/Security"
wevtutil.exe cl "Microsoft-Windows-SMBServer/Audit"
wevtutil.exe cl "Microsoft-Windows-SMBServer/Connectivity"
wevtutil.exe cl "Microsoft-Windows-SMBServer/Operational"
wevtutil.exe cl "Microsoft-Windows-SMBServer/Security"
wevtutil.exe cl "Microsoft-Windows-SMBWitnessClient/Admin"
wevtutil.exe cl "Microsoft-Windows-SMBWitnessClient/Informational"
wevtutil.exe cl "Microsoft-Windows-StateRepository/Operational"
wevtutil.exe cl "Microsoft-Windows-StateRepository/Restricted"
wevtutil.exe cl "Microsoft-Windows-Storage-Tiering/Admin"
wevtutil.exe cl "Microsoft-Windows-StorageManagement/Operational"
wevtutil.exe cl "Microsoft-Windows-StorageSpaces-Driver/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-StorageSpaces-Driver/Operational"
wevtutil.exe cl "Microsoft-Windows-StorageSpaces-ManagementAgent/WHC"
wevtutil.exe cl "Microsoft-Windows-StorageSpaces-SpaceManager/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-StorageSpaces-SpaceManager/Operational"
wevtutil.exe cl "Microsoft-Windows-Storage-ClassPnP/Operational"
wevtutil.exe cl "Microsoft-Windows-Store/Operational"
wevtutil.exe cl "Microsoft-Windows-Storage-Storport/Operational"
wevtutil.exe cl "Microsoft-Windows-SystemSettingsThreshold/Operational"
wevtutil.exe cl "Microsoft-Windows-TaskScheduler/Maintenance"
wevtutil.exe cl "Microsoft-Windows-TCPIP/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-RDPClient/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-ClientUSBDevices/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-ClientUSBDevices/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-LocalSessionManager/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-LocalSessionManager/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-PnPDevices/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-PnPDevices/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-Printers/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-Printers/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-RemoteConnectionManager/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-RemoteConnectionManager/Operational"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-ServerUSBDevices/Admin"
wevtutil.exe cl "Microsoft-Windows-TerminalServices-ServerUSBDevices/Operational"
wevtutil.exe cl "Microsoft-Windows-TZSync/Operational"
wevtutil.exe cl "Microsoft-Windows-TZUtil/Operational"
wevtutil.exe cl "Microsoft-Windows-UAC/Operational"
wevtutil.exe cl "Microsoft-Windows-UAC-FileVirtualization/Operational"
wevtutil.exe cl "Microsoft-Windows-SearchUI/Operational"
wevtutil.exe cl "Microsoft-Windows-UniversalTelemetryClient/Operational"
wevtutil.exe cl "Microsoft-Windows-User Control Panel/Operational"
wevtutil.exe cl "Microsoft-Windows-User Device Registration/Admin"
wevtutil.exe cl "Microsoft-Windows-User Profile Service/Operational"
wevtutil.exe cl "Microsoft-Windows-User-Loader/Operational"
wevtutil.exe cl "Microsoft-Windows-UserPnp/ActionCenter"
wevtutil.exe cl "Microsoft-Windows-UserPnp/DeviceInstall"
wevtutil.exe cl "Microsoft-Windows-VDRVROOT/Operational"
wevtutil.exe cl "Microsoft-Windows-VerifyHardwareSecurity/Admin"
wevtutil.exe cl "Microsoft-Windows-VHDMP-Operational"
wevtutil.exe cl "Microsoft-Windows-Volume/Diagnostic"
wevtutil.exe cl "Microsoft-Windows-VolumeSnapshot-Driver/Operational"
wevtutil.exe cl "Microsoft-Windows-VPN-Client/Operational"
wevtutil.exe cl "Microsoft-Windows-Wcmsvc/Operational"
wevtutil.exe cl "Microsoft-Windows-IKE/Operational"
wevtutil.exe cl "Microsoft-Windows-VPN/Operational"
wevtutil.exe cl "Microsoft-Windows-WFP/Operational"
wevtutil.exe cl "Microsoft-WindowsPhone-Connectivity-WiFiConnSvc-Channel"
wevtutil.exe cl "Microsoft-Windows-Win32k/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/ConnectionSecurity"
wevtutil.exe cl "Microsoft-Windows-Windows Firewall With Advanced Security/Firewall"
wevtutil.exe cl "Microsoft-Windows-WinRM/Operational"
wevtutil.exe cl "Microsoft-Windows-WindowsBackup/ActionCenter"
wevtutil.exe cl "Microsoft-Windows-WindowsSystemAssessmentTool/Operational"
wevtutil.exe cl "Microsoft-Windows-WindowsUpdateClient/Operational"
wevtutil.exe cl "Microsoft-Windows-WinINet-Config/ProxyConfigChanged"
wevtutil.exe cl "Microsoft-Windows-Winlogon/Operational"
wevtutil.exe cl "Microsoft-Windows-Winsock-WS2HELP/Operational"
wevtutil.exe cl "Microsoft-Windows-Wired-AutoConfig/Operational"
wevtutil.exe cl "Microsoft-Windows-WLAN-AutoConfig/Operational"
wevtutil.exe cl "Microsoft-Windows-WMI-Activity/Operational"
wevtutil.exe cl "Microsoft-Windows-WorkFolders/WHC"
wevtutil.exe cl "Microsoft-Windows-WorkFolders/Operational"
wevtutil.exe cl "Microsoft-Windows-Workplace Join/Admin"
wevtutil.exe cl "Microsoft-Windows-WPD-CompositeClassDriver/Operational"
wevtutil.exe cl "Microsoft-Windows-WPD-MTPClassDriver/Operational"
wevtutil.exe cl "Microsoft-Windows-WWAN-SVC-Events/Operational
wevtutil.exe cl "OAlerts"
wevtutil.exe cl "Kaspersky Event Log"
wevtutil.exe cl "Security"
wevtutil.exe cl "Setup"
wevtutil.exe cl "System"
wevtutil.exe cl "Windows PowerShell"

---------------------

删除win10事件查看器中的所有日志的批处理命令
作者:ZaiDdong 
来源:CSDN 
原文:https://blog.csdn.net/u013017701/article/details/89495192 
版权声明:本文为博主原创文章,转载请附上博文链接!

更多:https://blog.csdn.net/ingino/article/details/81279611

bat一键清理系统垃圾/系统日志相关推荐

  1. 一键清理系统垃圾文件脚本: clean.bat

    一键清理系统垃圾文件脚本: clean.bat 最后更新于:2007-09-03 09:09 版权声明:可以任意转载,转载时请务必以超链接形式标明文章 原始出处和作者信息及 本版权声明. http:/ ...

  2. 一键清理系统垃圾.bat,超级一键删除垃圾.bat,高郊级一键清理C盘垃圾.bat

    @echo off echo ----------------------------------------------------------------------------- echo 清空 ...

  3. 计算机dos批处理代码,计算机Dos批处理,编写一键清理系统垃圾的bat代码,小白都可以学-批处理删除文件...

    计算机Dos批处理,编写一键清理系统垃圾的bat代码,编写自己清理系统的代码,就是这样简单. 关于代码怎么使用: [新建文本文件(记事本)]-[复制代码]-[粘贴代码]-[重命名文本文件后缀名为bat ...

  4. Dos一键清理系统垃圾教程

    一键清理系统垃圾是靠dos也就是批处理实现的.主要的命令是del和rd 一个是删除文件(del) 一个删除目录(rd),这里为大家介绍一下 del 命令的参数 /F 强制删除只读文件. /S 从所有子 ...

  5. Windows垃圾文件清理--一键清理系统垃圾

    Windows垃圾文件清理 垃圾文件的定义 1. 软件安装过程中产生的临时文件 许多软件在安装时,首先要把自身的安装文件解压缩到一个临时目录(一般为 Windows文件夹下的Temp目录),如WinZ ...

  6. 清理系统垃圾(超强版).bat

    以前这篇文章没有排版,可能导致大家直接复制无法使用,现在已经解决. @echo off color a set tm1=%time:~0,2% set tm2=%time:~3,2% set tm3= ...

  7. linux 卸载 rtx,Ubuntu20.04系统卸载软件及清理系统垃圾缓存以及新力得

    我们用Windows乃至手机Android系统用多了,都知道定时清理系统垃圾这种必修课.那么在Ubuntu这样的Linux系统下,我们应该怎么清理系统删除垃圾缓存呢?其实Ubuntu和Windows是 ...

  8. python清理垃圾_用Python自动清理系统垃圾,再也不用360安全卫士了

    用Python自动清理系统垃圾,再也不用360安全卫士了 在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:.tmp.._mp)日志文件(.log).临时帮助文件(.gid ...

  9. 360软件管家怎么下载python_用Python自动清理系统垃圾,再也不用360安全卫士了

    用Python自动清理系统垃圾,再也不用360安全卫士了 在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:.tmp.._mp)日志文件(.log).临时帮助文件(.gid ...

  10. 用于清理系统垃圾的batch文件

    2019独角兽企业重金招聘Python工程师标准>>> 这是一个从网上下载的用来清理系统垃圾的batch文件,主要是清理系统盘的临时文件和某些日志文件等. 下面是batch文件的内容 ...

最新文章

  1. PTA—输出全排列 (20分) 递归回溯思想
  2. Symbian编程总结-图形图像篇-打开非Bitmap类型的图像
  3. 移动设备应用程序中支持多个屏幕大小和 DPI 值
  4. 信息系统项目管理01——信息化和信息系统
  5. Hadoop如何迎击大数据分析的挑战
  6. 燕山大学高数AⅠ复习资料
  7. Linux su 命令
  8. linux驱动篇-Led
  9. linux运维工作内容及岗位要求
  10. 【数据挖掘】遗传算法原理浅析:什么是遗传算法?遗传算法的工作原理是什么?
  11. 中国象棋AI实现01
  12. 红山vTop虚拟化桌面实施分享(一)
  13. 在linux上gc日志详解,JVM Parallel Scavenge GC日志详解
  14. ios tableView那些事 (九) tableview的删除
  15. 从中国金融的兴起,以后发展趋势变化分析
  16. 如何使用域名访问到特定IP地址的服务器?
  17. ubuntu20.04设置开机自动挂载
  18. 安装VS2003时IIS下面缺少FrontPage2000服务器扩展的解决办法
  19. bzoj 4455: [Zjoi2016]小星星
  20. 进阶篇:3.3)压铸件设计

热门文章

  1. iOS 16 中 SwiftUI 防止弹出的 sheet 视图被下滑关闭(dismiss)的新解决方案
  2. JavaScript 和 Macromedia Flash 之间的通信示例
  3. 大胖子走迷宫 [蓝桥杯 ]
  4. Python爬虫之抓取豆瓣影评数据
  5. android 触摸事件流程。
  6. 一个奇鸽船新版本 v1.32
  7. 手机评论文本挖掘与数据分析(Python)
  8. 虎胆龙威5java7723,汉米尔顿腕表联手《虎胆龙威5》再度演绎热血豪情
  9. RTC领域首个AI算法大赛 AI in RTC 2019 创新挑战圆满落幕
  10. 开源项目学习:XINS