bat一键清理系统垃圾/系统日志

@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

  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
清理Win10系统垃圾是保持系统运行顺畅的重要步骤之一。下面提供一种使用.bat批处理文件一键清理Win10系统垃圾的方法: 1. 首先,在你的桌面或任何其他位置创建一个新的文本文件,将其命名为"clean.bat"(注意,文件扩展名必须是.bat)。 2. 打开该文件,并在其中输入以下命令: ``` @echo off echo 正在清理Win10系统垃圾... echo 请耐心等待... echo. echo 清理临时文件夹... del /f /q %TEMP%\*.* echo. echo 删除回收站中的文件... rd /s /q %systemdrive%\$Recycle.Bin echo. echo 清理系统日志文件... wevtutil.exe cl Application wevtutil.exe cl Security wevtutil.exe cl Setup wevtutil.exe cl System echo. echo 清理DNS缓存... ipconfig /flushdns echo. echo 一键清理完成! pause ``` 3. 保存并关闭该文件。 4. 双击运行这个".bat"文件,它将开始执行清理操作。你会看到命令提示符窗口显示清理进度,当清理完成时,它会显示一条消息,你需要按下任意键来关闭该窗口。 请注意,这个批处理文件只会删除系统和用户临时文件夹中的文件,清空回收站,清理系统日志文件并刷新DNS缓存。这些操作都是安全的,但是在运行之前请确保你保存了任何重要的文件和数据,以防万一。 保持系统干净整洁对于确保Windows 10系统的稳定性和高效性是至关重要的,因此建议定期运行这个清理批处理文件,以清理系统垃圾并提供更好的性能。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值