Version: 2
restore

Contents

Method

RegistryUserKeyExists

ModuleNativeServices
LibraryCore
Action

Checks whether a given key exists for every user under HKU.

ParametersSubkey (string): The registry key to look for.
Return values

Exists (boolean): True if the key exists, false if it doesn't.

Sid (string): SID the key was found under.

Username (string): Domain\Username of the aforementioned SID.

Example
 NativeServices.RegistryUserKeyExists(Subkey:"Console\\%SystemRoot%_System32_cmd.exe");
Platforms
  • Windows
Notes

    Page not found for multiexcerpt macro.
The page: ~davew:Method Notes was not found. Please check/update the page name used in the 'multiexcerpt-include macro.

This method may attempt to call AD to translate a SID to a username.