$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

Â