Skip to content

Instantly share code, notes, and snippets.

View LM-CT's full-sized avatar

Lucas Cloud Target LM-CT

View GitHub Profile
@LM-CT
LM-CT / New-SysmonArchiveQuota.ps1
Last active May 21, 2024 16:43 — forked from zbalkan/New-SysmonArchiveQuota.ps1
If you use Sysmon and enabled FileDelete events started with Sysmon 11, you probably came up with the issue of instantly growing hidden archive. For those who have not solved the problem yet, I came up with a PowerShell cmdlet (run as SYSTEM) based on the article https://blog.nviso.eu/2022/06/30/enforcing-a-sysmon-archive-quota/
#Requires -RunAsAdministrator
<#
.Synopsis
Generates Sysmon Archive file quota for `File Delete` events to help managing the size.
.DESCRIPTION
Based on: https://blog.nviso.eu/2022/06/30/enforcing-a-sysmon-archive-quota/
.INPUTS
None. Cmdlet does not accept pipe values.
.OUTPUTS