Examples/Sample_AuditPolicyCsv.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<#
    This example will apply the audit policy settings in the CSV located at
    C:\data\AuditPolBackup.csv to the localhost.
    To use this example, run it using PowerShell.
#>

Configuration Sample_AuditPolicyCsv
{
    param
    (
        [String] $NodeName = 'localhost'
    )    
   
    Import-DscResource -ModuleName AuditPolicyDsc

    Node $NodeName
    {
        AuditPolicyCsv auditPolicy
        {
            IsSingleInstance = 'Yes'
            CsvPath = "C:\data\AuditPolBackup.csv"
        }
    }
}

Sample_AuditPolicyCsv