Skip to content

PS1 script to clear Windows Event Log without wevtutil or Clear-EventLog

Notifications You must be signed in to change notification settings

limbenjamin/Invoke-LogClear

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Invoke-LogClear

PS1 script to clear Windows Event Log without wevtutil or Clear-EventLog

The simple way to clear Windows Event Logs is to use wevtutil or the Clear-EventLog powershell cmdlet. However, these commands may be logged and monitored.

Invoke-LogClear.ps1 loads advapi32.dll and uses the OpenEventLogW, ElfClearEventLogFileW and CloseEventLog function calls to clear the logs.

About

PS1 script to clear Windows Event Log without wevtutil or Clear-EventLog

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published