FlexNet Inventory Scanner Command Line
Command line summary for the FlexNet Inventory Scanner on both Windows and UNIX-like platforms.
Options:
These optional parameters individually override the default FlexNet Inventory Scanner settings on Windows. On UNIX-like platforms, they override both the individual default settings and any matching preference recorded in ndtrack.ini.
Preferences for FlexNet Inventory Scanner are directly passed through to the ndtrack executable, so that details for each option are included in the preferences topics listed and linked below.
Enclose values in double quotation marks if the values include spaces; otherwise, double quotation marks are optional. Special characters (double quotation marks, backslash) must be escaped with a backslash.
-t
command-line option available on Windows for the installed
FlexNet Inventory Agent is not supported for the FlexNet Inventory Scanner. Instead, you can
specify the inventory type using the command line
parameter:-o InventoryType=User|Machine
If the
InventoryType
preference is not specified, the type of inventory
collected on Windows platforms depends on the account running the FlexNet Inventory Scanner:
- For the LocalSystem account, a computer (machine) inventory is collected
- For all other accounts, a user inventory is collected.
Return codes
FlexNet Inventory Scanner returns a zero on success. If you receive a non-zero return code, check the log file. Details of the log file may also be configured with command-line options, as listed below.
Command line examples
FlexeraInventoryScanner.exe
-o InventoryType=Machine
-o MachineZeroTouchDirectory="local-folder"
-o Upload=False
This
example collects user-based inventory and uploads it to an inventory beacon:
FlexeraInventoryScanner.exe
-o InventoryType=User
-o UploadLocation="http://InventoryBeacon/ManageSoftRL"
Options
- DateTimeFormat
- ComputerDomain
- ExcludeDirectory
- ExcludeExtension
- ExcludeFile
- ExcludeMD5
- GenerateMD5
- Hardware
- IncludeDirectoryImportant: Since the default for this preference is blank, this means that no files are included in inventory gathering by default. Inventory then relies entirely on installer evidence. If you wish to collect file evidence for any reason, it is mandatory to set an appropriate value for
IncludeDirectory
. - IncludeExecutables
- IncludeExtension
- IncludeFile
- IncludeMachineInventory
- IncludeMD5
- IncludeRegistryKey (ignored for UNIX-like platforms)
- IncludeUserInventory (ignored for UNIX-like platforms)
- InventoryFile
- InventoryScriptsDir
InventoryType
is deprecated on Windows and ignored on UNIX-like platforms. The defaults for Windows areUser
unless the account executing FlexNet Inventory Scanner isLocalSystem
, in which case the default switches toMachine
. Available for backward compatibility only.- LogFile (installation component)
- LogLevel (inventory component)
- LogModules (inventory component)
- LowProfile (inventory component)
- MachineName
- MachineZeroTouchDirectory (ignored for UNIX-like platforms)
- MSI (ignored for UNIX-like platforms)
- PreferIPVersion
- ProgramFiles, ProgramFilesX86Folder, ProgramFilesX64Folder (ignored for UNIX-like platforms)
- Recurse
- RunInventoryScripts (ignored for UNIX-like platforms)
- ShowIcon (inventory component) (ignored for UNIX-like platforms)
- SysDirectory (ignored for UNIX-like platforms)
- UploadTip: The default False value for FlexNet Inventory Scanner is the inverse of the default for the installed, complete FlexNet Inventory Agent.
- UploadLocation
-
UserHardware
(ignored for UNIX-like platforms, and deprecated for Windows). Available for backward compatibility only. Effective only when running in the user context (also deprecated). The default False excludes hardware inventory data from the user's software inventory. UserZeroTouchDirectory
(ignored for UNIX-like platforms, and deprecated for Windows). Available for backward compatibility only. The FlexNet Inventory Scanner uses the location specified in this option for any user-based inventory (user-based inventory is also deprecated). It has no default value.- VersionInfo (ignored for UNIX-like platforms)
- WinDirectory (ignored for UNIX-like platforms)
- WMI (ignored for UNIX-like platforms)
- WMIConfigFile (ignored for UNIX-like platforms).
Notes
- Default values only apply if the parameter is not specified.
- Directory paths must be specified as absolute paths (that is, on Windows, starting with
a drive name). The typical wildcards in directory names are supported (
*
representing any number of characters, and?
representing a single character). - The FlexNet Inventory Scanner accepts all name/value combinations, although if a preference is used that does not appear in the list above, it may be ignored. On UNIX-like platforms, preferences may be included in the ndtrack.ini configuration file (not supported for Microsoft Windows).
- A preference value can symbolically refer to another preference by enclosing its name
thus:
$(preferenceName)
. References can contain further references.Example: The command
includes the Windows directory in the scan. References are resolved after all preferences are loaded so there are no ordering issues. Hopefully it is self-evident that, on UNIX-like platforms, only supported preferences can be referenced.FlexeraInventoryScanner.exe -o IncludeDirectory=$(WinDirectory)
- Semicolon or comma-separated values are the only method for defining multiple values in
the FlexNet Inventory Scanner. Only the
Include
andExclude
preferences listed above may have multiple values. All other preferences contain a single value that can be overwritten.Example: The command
will scan the computer’s C:, D:, and E: drives if they are fixed (hard) disks, but not if they are CD-ROM drives or logical drives (mapped to network locations).FlexeraInventoryScanner.exe -o IncludeDirectory=C:\\;D:\\;E:\\
For more information, see ndtrack Command Line.
IT Asset Management (Cloud)
Current