DSCResources/ooDscLog/ooDscLog.schema.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Configuration ooDscLog {
    Import-DscResource -ModuleName ComputerManagementDsc -ModuleVersion 8.0.0

    # 1 hour is about 1MB so this gives you two days worth
    # LogMode cannot be changed to Cicular on these unfortunately

    WindowsEventLog "AlterDSCOperationalLog" {
        LogName            = "Microsoft-Windows-DSC/Operational"
        MaximumSizeInBytes = 48MB
    }

    WindowsEventLog "EnableDSCAnalyticLog" {
        LogName            = "Microsoft-Windows-DSC/Analytic"
        MaximumSizeInBytes = 48MB
        IsEnabled          = $true
    }

    WindowsEventLog "EnableDSCDebugLog" {
        LogName            = "Microsoft-Windows-DSC/Debug"
        MaximumSizeInBytes = 48MB
        IsEnabled          = $true
    }
}