IncludeRegistryKey

FlexNet Manager Suite 2020 R2 (On-Premises)

Command line | Registry

Set IncludeRegistryKey to instruct the FlexNet inventory agent to return the contents of the specified registry keys or values. (Applies to Microsoft Windows devices only, and is ignored on UNIX-like platforms.)

In order to collect all values under a specified key, the key path specified must end with a trailing backslash. If the path specified corresponds to a key (rather than a registry value) but does not end with a trailing backslash, only the (Default) value (if it is set) for the specified key will be collected.
Tip: Default values in the registry are typically not set.
For example:
  • HKLM\SOFTWARE\ManageSoft Corp\ManageSoft\ will track all values under the specified key (because it has a trailing backslash)
  • HKLM\SOFTWARE\ManageSoft Corp\ManageSoft will only track the (Default) values under the specified key (where they exist).
When setting this preference, you can use:
  • The * wildcard to replace a key or value (including multiple times for different key elements in a single path)
  • The abbreviations HKLM, HKCU, HKCR, HKU, HKCC. These will be automatically expanded to appropriate values.
Tip: Although in the FlexNet Inventory Scanner case, ndtrack.exe does not read preferences from the registry to modify its own behavior, it can still be instructed to collect registry keys and values to return in inventory. To modify the default value (shown below) for registry key(s) to be read by FlexNet Inventory Scanner, set the special case on the command line.
Important: While IncludeRegistryKey controls inclusion of registry values in the uploaded inventory .ndi file, a separate preference on the inventory server (or, in smaller implementations, the application server) must be present and set to true for this data to be saved to the FlexNet inventory database. Be precise with the following settings: do not use the Wow6432Node path. The setting in the registry of the inventory server is:
  • Key: HKLM\SOFTWARE\ManageSoft Corp\ManageSoft\Reporter\CurrentVersion\Registry
  • Name: SaveRegistry
  • Type: REG_SZ
  • Value: True.
Note that the net effect of both changes is to upload the registry values and save them into the inventory database; but there is no automatic way to import the special values into the compliance database. To enable such an import requires customization of the database writers.

Values

Values / range

Valid registry key or value

Default value

If no value is specified, the FlexNet inventory agent (and FlexNet Inventory Scanner) use
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows \CurrentVersion\Uninstall\
and include any keys and values thereunder in the returned inventory.

Example values

Track all registry keys and values under HKEY_LOCAL_MACHINE\SOFTWARE:
HKLM\SOFTWARE\*\
Track all values (only) under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft:
HKLM\SOFTWARE\Microsoft\*
Use multiple wildcards:
HKLM\SOFTWARE\*\CurrentVersion\*\*

Command line

Tool

Inventory component (ndtrack)

Example

-o IncludeRegistryKey="HKEY_LOCAL_MACHINE\
SOFTWARE\Microsoft\Windows\CurrentVersion\
App Paths\"

Registry

Installed by

Code internals, or manual configuration

Computer preference

[Registry]\ManageSoft\Tracker\CurrentVersion

FlexNet Manager Suite (On-Premises)

2020 R2