Skip to content

Instantly share code, notes, and snippets.

View Carolinaanogues's full-sized avatar

Carolina Carolinaanogues

  • Switzerland
View GitHub Profile
@zbalkan
zbalkan / New-SysmonArchiveQuota.ps1
Last active September 13, 2024 23:55
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