Versions Compared

Key

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

...

Method

RegistryUserKeyExists

ModuleNativeServices
LibraryCore
Action


Excerpt
For each user under HKU, tests whether a given key exists.


Parameters

Multiexcerpt include
MultiExcerptNameSubkeyParameter
PageWithExcerptMethod Notes

Return values

For each user:

Exists (boolean): Whether the key exists or not.

Sid (string): SID of the user.

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

Example


Code Block
languageperl
 NativeServices.RegistryUserKeyExists(Subkey:"Control Panel\\Colors");


Platforms
  • Windows
Notes

The following statement is a useful way to correlate any user account with its SID on a device.

Code Block
languageperl
 NativeServices.RegistryUserKeyExists(Subkey:"");
Multiexcerpt include
MultiExcerptNameLimit8192ForAllUsers
PageWithExcerptMethod Notes

Multiexcerpt include
MultiExcerptNameHKU
PageWithExcerptMethod Notes

Warning
titleWarning

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


...