Method

RegistryUserKeyExists

ModuleNativeServices
LibraryCore
Action


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


Parameters

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


 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.

 NativeServices.RegistryUserKeyExists(Subkey:"");

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