fix community gather cert rule

This commit is contained in:
Oliver Kieselbach
2026-03-17 22:43:17 +01:00
parent 1815159c80
commit c3b8f12300
+2 -1
View File
@@ -10,7 +10,8 @@
"enabled": true,
"collectorType": "command_allowlisted",
"target": "$c = Get-ChildItem Cert:\\LocalMachine\\My; if ($c) { $c | Select-Object Subject, Thumbprint, Issuer, NotBefore, NotAfter, HasPrivateKey | ConvertTo-Json } else { '{\"CertificateCount\": 0}' }",
"trigger": "startup",
"trigger": "phase_change",
"triggerPhase": "FinalizingSetup",
"outputEventType": "gather_machine_cert_store",
"outputSeverity": "Info",
"tags": ["identity", "certificates", "machine-store", "powershell"]