Set Registry Value

Configures the given registry value.

Input Parameters

Name Type Required Description

Base

String

Yes

The base of the key, HKCU or HKLM.

Key

String

Yes

The full path of the registry key to be configured, not including the base, where the search will start.

Property Name

String

Yes

The name of the property to configure.

Property Type

String

Yes

The type of property to configure.

If DWORD is selected as the Property Type, the Property Value must be configured in decimal format and not hexadecimal format.

Property Value

String

Yes

The value of the property.

Output Parameters

Name Type Description

Result

Number

Returns a success value of zero. Any value other than zero indicates 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