Create Registry Key
Creates the given registry value.
Input Parameters
Name | Type | Required | Description |
---|---|---|---|
Base |
String |
Yes |
The base of the key, HKCU or HKLM. |
New Key |
String |
Yes |
The full path of the registry key to be created, not including the base, where the search will start. If this key already exists, just the property and value will be created. |
Property Name |
String |
Yes |
The name of the property to create. |
Property Type |
String |
Yes |
The type of property to create. If |
Property Value |
String |
Yes |
The value of the property. |
Output Parameters
Name | Type | Description |
---|---|---|
Result |
Number |
Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
Name | Type | Required | Example |
---|---|---|---|
Base |
String |
Yes |
HKLM |
New Key |
String |
Yes |
SYSTEM\CurrentControlSet\services\WinDefend |
Property Name |
String |
Yes |
ErrorControl |
Property Type |
String |
Yes |
DWORD |
Property Value |
String |
Yes |
1 |