Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagepowershell
if ($cs.Reg_ExistVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run','Everything'))
{
    $cs.Reg_DeleteVariable('hklm', 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 'Everything')
}        

...