Source |
|
DSC Resource |
|
Documentation |
Parameter | DataType | Description |
---|---|---|
hashtable[] |
Set of audit policy options (see AuditPolicyOption) |
|
hashtable[] |
Set of advanced audit policy subcategory audit flags (see AuditPolicySubcategory) |
|
hashtable[] |
Set of advanced audit policy subcategory audit flags that works around localization issues with auditpol (see AuditPolicyGUID) |
|
CsvPath |
String |
The path to the CSV file with audit policy backup to apply to the node. |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
The name of the audit policy option to configure. |
|
Value |
Mandatory |
String |
The value to apply to the audit policy option. |
|
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
The name of the subcategory in the advanced audit policy to manage. |
|
AuditFlag |
Key |
String |
The name of the audit flag to apply to the subcategory. |
|
Ensure |
String |
Indicates whether the service is present or absent. Defaults to Present. |
|
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Name |
Key |
String |
The name of the subcategory in the advanced audit policy to manage. |
|
AuditFlag |
Key |
String |
The name of the audit flag to apply to the subcategory. |
|
Ensure |
String |
Indicates whether the service is present or absent. Defaults to Present. |
|
AuditPolicies:
Options:
- Name: AuditBaseObjects
Value: Enabled
- Name: AuditBaseDirectories
Value: Enabled
Subcategories:
- Name: Logon
AuditFlag: Success
Ensure: Absent
- Name: Logon
AuditFlag: Failure
Ensure: Present
Guids:
- Name: Logon
AuditFlag: Success
Ensure: Absent
- Name: Logon
AuditFlag: Failure
Ensure: Present
CsvPath: C:\Temp\AuditPolBackup.csv
Datum.yml
(Excerpt)lookup_options:
AuditPolicies:
merge_hash: deep
AuditPolicies\Options:
merge_hash_array: UniqueKeyValTuples
merge_options:
tuple_keys:
- Name
AuditPolicies\Subcategories:
merge_hash_array: UniqueKeyValTuples
merge_options:
tuple_keys:
- Name
- AuditFlag
AuditPolicies\Guids:
merge_hash_array: UniqueKeyValTuples
merge_options:
tuple_keys:
- Name
- AuditFlag