Syntax
$cs.Reg_SetExpandString(string registryroot, string regkey, string regvaluen, string regdata)
Parameters
registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
...
regdata
Registry string to write
Example
Code Block | ||
---|---|---|
| ||
$cs.Reg_SetExpandString('HKLM','SYSTEM\CurrentControlSet\Control\Session Manager\Environment','Temp','%SystemRoot%\TEMP') |
...