Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Current »

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

  • No labels