$cs.Reg\_SetExpandString
Syntax
Section titled “Syntax”$cs.Reg_SetExpandString(string registryroot, string regkey, string regvaluen, string regdata)
Parameters
Section titled “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
Section titled “Example”$cs.Reg_SetExpandString('HKLM','SYSTEM\CurrentControlSet\Control\Session Manager\Environment','Temp','%SystemRoot%\TEMP')returns nothing