$cs.Reg_SetExpandString

Syntax

$cs.Reg_SetExpandString(string registryroot, string regkey, string regvaluen, string regdata)

 

Parameters

registryroot

Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)

regkey

Registry keypath

regvalue

Registry value (will be created if not existing)

regdata

Registry string to write

 

Example

$cs.Reg_SetExpandString('HKLM','SYSTEM\CurrentControlSet\Control\Session Manager\Environment','Temp','%SystemRoot%\TEMP')

returns nothing

Â