REG SETVALUE()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to set the value data of a Windows Registry value

Syntax

REG_SETVALUE(<cRegRoot>, <cRegValue>, <cRegValueData> [, <cRegValueType>])

See Also

ADDBS(), GETENV(), PUTENV(), REG_GETVALUE()

Description

The REG_SETVALUE() function sets the value data of the Windows registry value <cRegValue> in the Registry root <cRegRoot> to <cRegValueData>. The value type can be optionally specified in <cRegValueType>. The default is 'string'.

The value data of the Windows Registry value is returned.

Note: this function is only available when the process is run as administrator.

Example

reg_setvalue("HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lianja\Lianja Server\Netserver","DB_AUTHENTICATION_REQUIRED","true","string")