Skip to content

Instantly share code, notes, and snippets.

@signalwarrant
Created August 9, 2019 20:05
Show Gist options
  • Select an option

  • Save signalwarrant/5815b738ae8c871f2a4bb155813f1ed1 to your computer and use it in GitHub Desktop.

Select an option

Save signalwarrant/5815b738ae8c871f2a4bb155813f1ed1 to your computer and use it in GitHub Desktop.
Advanced Auditing MOF Config
# 5. Create the client MOFs
# https://github.com/PowerShell/AuditPolicyDsc
Configuration AuditPolicyCsv {
param(
[String] $NodeName = 'SVR'
)
Import-DscResource -ModuleName AuditPolicyDsc
Node $NodeName {
AuditPolicyCsv auditPolicy {
IsSingleInstance = 'Yes'
CsvPath = "C:\audit.csv"
}
}
}
#
AuditPolicyCsv
#
New-DscChecksum -path '.\AuditPolicyCSV\SVR.mof'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment