BloatyNosy/extensions/ClearEventLogsHandler.ps1

2 lines
108 B
PowerShell
Raw Normal View History

2024-04-18 18:10:17 +02:00
Import-Module Microsoft.PowerShell.Management
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }