$cs.Reg_ExistVariable
Syntax
$cs.Reg_ExistVariable(string registryroot, string regkey, string regvariable)
Â
Parameters
registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
regkey
Registry keypath
regvariable
Registry variable to check for
Â
Example
if ($cs.Reg_ExistVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run','Everything'))
{
$cs.Reg_DeleteVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'Everything')
}
returns value as boolean