Created
August 9, 2019 20:05
-
-
Save signalwarrant/5815b738ae8c871f2a4bb155813f1ed1 to your computer and use it in GitHub Desktop.
Advanced Auditing MOF Config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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