/
$cs.Reg_GetExpandString
$cs.Reg_GetExpandString
Syntax
$cs.Reg_GetExpandString(string registryroot, string regkey, string regvalue)
Parameters
registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
regkey
Registry keypath
regvalue
Registry value to retrieve (empty string for default value)
Example
$filepath=$cs.Reg_GetExpandString("HKU",".DEFAULT\Environment","Path")
returns value as string
, multiple selections available,
Related content
$cs.Reg_GetString
$cs.Reg_GetString
More like this
$cs.Reg_ExistKey
$cs.Reg_ExistKey
Read with this
$cs.Reg_GetString
$cs.Reg_GetString
More like this
PowerShell Scripting Library
PowerShell Scripting Library
Read with this
$cs.Reg_GetInteger
$cs.Reg_GetInteger
More like this
$cs.Reg_SetExpandString
$cs.Reg_SetExpandString
More like this