Occasionally I have to clear all the logs on a Windows system, if it’s reasonably new then the following command run in PowerShell as an administrator (Right-Click then ‘Run As Administrator) should do just that.
1 |
wevtutil el | Foreach-Object {wevtutil cl "$_"} |