Event Log'ların Toplu Olarak Silinmesi

Windows Event Logların toplu olarak powershell, komut satırı ile silmek için aşağıdaki komutları kullanabilirsiniz.
Komut satırı ile toplu event log silinmesi için;
for /F “tokens=*” %1 in (‘wevtutil.exe el’) DO wevtutil.exe cl “%1”

Powershell ile toplu event log silinmesi için aşağıdaki;
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
yada 
wevtutil el | Foreach-Object {wevtutil cl “$_”}

Yorumlar

Bu blogdaki popüler yayınlar

Ping Komutu ve CMD komutları

Uzak Masaüstü Bağlantı (RDP) Kısayol Oluşturma

hiberfile ve pagefile.sys dosyaları nedir nasıl silinir?