查看完整版本: Clean Event Log Windows
頁: [1]

opabravo 發表於 2016-12-3 08:41 PM

Clean Event Log Windows

@echo off
color a

Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 請使用右鍵管理員身份執行!&&PAUSE >NUL&&EXIT)

for /F "tokens=*" %%G in ('wevtutil.exe el') DO (call :do_clear "%%G")
echo.
echo goto theEnd
:do_clear
echo clearing %1
wevtutil.exe cl %1
goto :eof


<div></div>
頁: [1]