Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
|||
GpUpdateInterval |
Int |
Refresh Local Group Policy after the specified count of values are set (gpupdate) |
Default: 20 |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Key |
Key |
String |
Indicates the path of the registry key for which you want to ensure a specific state. |
|
ValueName |
Key |
String |
Indicates the name of the registry value. |
|
TargetType |
String |
Indicates the target type. |
|
|
AccountName |
String |
Specifies the name of the account for an user specific pol file to be managed. |
||
ValueData |
String[] |
The data the specified registry key value should have as a string or an array of strings (MultiString only). |
||
ValueType |
String |
The type the specified registry key value should have. |
|
|
Force |
Boolean |
Force an refresh of the Local Group Policy after set of the current value |
|
|
Ensure |
String |
Specifies the desired state of the registry policy. |
|
RegistryPolicies:
GpUpdateInterval: 30
Values:
- Key: "HKLM:\\SOFTWARE\\Policies\\Microsoft\\MRT"
ValueName: DontReportInfectionInformation
TargetType: ComputerConfiguration
ValueData: 1
ValueType: Dword
Ensure: Present
- Key: "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\System"
ValueName: EnableSmartScreen
ValueData: 0
ValueType: Dword
Force: True
Datum.yml
(Excerpt)lookup_options:
RegistryPolicies:
merge_hash: deep
RegistryPolicies\Values:
merge_hash_array: UniqueKeyValTuples
merge_options:
tuple_keys:
- Key
- ValueName
- TargetType