Files
2023-04-16 15:22:25 +08:00

5 lines
177 B
Plaintext

Set LogFileSet = GetObject("winmgmts:{(Backup,Security)}").ExecQuery("select * from Win32_NTEventLogFile")
for each Logfile in LogFileSet
RetVal = LogFile.ClearEventlog()
next