mirror of
https://github.com/builtbybel/BloatyNosy.git
synced 2024-11-07 16:44:18 +01:00
Add files via upload
This commit is contained in:
parent
4d39c00011
commit
e1adfca7f6
7
mods/Clear event logs.ini
Normal file
7
mods/Clear event logs.ini
Normal file
@ -0,0 +1,7 @@
|
||||
[Info]
|
||||
DisplayName=Clear event logs
|
||||
Publisher=Builtbybel
|
||||
AboutScript=In some cases it is necessary to delete all entries from Windows event logs on a computer or a server. Of course, you can clear the system logs from the Event Viewer console GUI - Eventvwr.msc (right-click the log you would like to clear and select Clear Log).
|
||||
ScriptLanguage=PowerShell
|
||||
ConditionScript=clear-event_logs.ps1
|
||||
CreateNoWindow=true
|
2
mods/clear-event_logs.ps1
Normal file
2
mods/clear-event_logs.ps1
Normal file
@ -0,0 +1,2 @@
|
||||
Import-Module Microsoft.PowerShell.Management
|
||||
Get-EventLog -LogName * | ForEach { Clear-EventLog $_.Log }
|
Loading…
Reference in New Issue
Block a user