Syntax
$cs.Reg_ExistVariable(string registryroot, string regkey, string regvariable)
Parameters
registryroot
Root key (HKLM or HKEY_LOCAL_MACHINE, HKCU, HKU)
...
Registry variable to check for
Example
Code Block | ||
---|---|---|
| ||
if ($cs.Reg_ExistVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run','Everything')) { $cs.Reg_DeleteVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'Everything') } |
...