/
$cs.Reg_ExistKey
$cs.Reg_ExistKey
Syntax
$cs.Reg_ExistKey(string registryroot, string regkey)
Parameters
registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
regkey
Registry keypath to check for
Example
if ($cs.Reg_ExistKey("HKU","Software\Adobe\Acrobat Reader\DC\AVGeneral"))
{
$cs.Reg_SetDword("HKU","Software\Adobe\Acrobat Reader\DC\AVGeneral","bisFirstLaunch",0)
}
returns value as boolean
Related content
PowerShell Scripting Library
PowerShell Scripting Library
Read with this
$cs.Reg_ExistKey
$cs.Reg_ExistKey
More like this
$cs.Reg_GetExpandString
$cs.Reg_GetExpandString
Read with this
$cs.Reg_SetInteger
$cs.Reg_SetInteger
More like this
$cs.Shell_Execute
$cs.Shell_Execute
Read with this
$cs.Reg_SetInteger
$cs.Reg_SetInteger
More like this