Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagepowershell
$cs.Reg_SetExpandString('HKLM','SYSTEM\CurrentControlSet\Control\Session Manager\Environment','Temp','%SystemRoot%\TEMP')

...