You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dsc/registryResource.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,9 +32,9 @@ Registry [string] #ResourceName
32
32
| Property | Description |
33
33
|---|---|
34
34
| Key| Indicates the path of the registry key for which you want to ensure a specific state. This path must include the hive.|
35
-
| ValueName| Indicates the name of the registry value.|
35
+
| ValueName| Indicates the name of the registry value. To add or remove a registry key, specify this property as an empty string without specifying ValueType or ValueData. To modify or remove the default value of a registry key, specify this property as an empty string while also specifying ValueType or ValueData.|
36
36
| Ensure| Indicates if the key and value exist. To ensure that they do, set this property to "Present". To ensure that they do not exist, set the property to "Absent". The default value is "Present".|
37
-
| Force| If the specified registry key is present, __Force__ overwrites it with the new value.|
37
+
| Force| If the specified registry key is present, __Force__ overwrites it with the new value. If deleting a registry key with subkeys, this needs to be __$true__|
38
38
| Hex| Indicates if data will be expressed in hexadecimal format. If specified, the DWORD/QWORD value data is presented in hexadecimal format. Not valid for other types. The default value is __$false__.|
39
39
| DependsOn| Indicates that the configuration of another resource must run before this resource is configured. For example, if the ID of the resource configuration script block that you want to run first is __ResourceName__ and its type is __ResourceType__, the syntax for using this property is `DependsOn = "[ResourceType]ResourceName"`.|
0 commit comments