Source |
|
DSC Resource |
|
Documentation |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Mandatory |
Hashtable[] |
List of registry values |
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Key |
Key |
String |
The path of the registry key to add, modify, or remove. |
|
ValueName |
Key |
String |
The name of the registry value. |
|
Ensure |
String |
Specifies whether or not the registry key or value should exist. |
|
|
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. |
|
|
Hex |
Boolean |
Specifies whether or not the specified |
|
|
Force |
Boolean |
Specifies whether or not to overwrite the specified registry key value if it already has a value or whether or not to delete a registry key that has subkeys. |
|
RegistryValues:
Values:
- Key: HKLM:\Software\Microsoft\Rpc\Internet
ValueName: Ports
ValueData: 60000-60100
ValueType: MultiString
Ensure: Present
Force: true
- Key: HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging
ValueName: EnableModuleLogging
ValueData: 1
ValueType: Dword
- Key: HKLM:\Software\Policies\Microsoft\Cryptography\Configuration\SSL\00010002
ValueName: EccCurves
ValueData:
- curve25519
- NistP256
- NistP384
ValueType: MultiString
- Key: HKLM:\Software\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames
Ensure: Absent
Datum.yml
(Excerpt)lookup_options:
RegistryValues:
merge_hash: deep
RegistryValues\Values:
merge_hash_array: UniqueKeyValTuples
merge_options:
tuple_keys:
- Key
- ValueName