IncludeDirectory
Command line | Registry
IncludeDirectory
targets a specified folder for scanning for files to include in
inventory. If Recurse
is True
, then all subfolders are also
included. /bin
is a symbolic link to
/usr/bin
. On such a system, if you specified
IncludeDirectory=/bin
, no inventory would be collected, because the
symbolic link cannot be followed. Changing the preference on such a system to
IncludeDirectory=/usr/bin
solves the problem, since there is now no
intermediate symbolic link. On UNIX-like systems, check for symbolic links with the
ls -l
command.For UNIX-like platforms, a setting of "/
" scans the entire file system. For
Microsoft Windows platforms, when the value of this entry is set to "\
", it
means "include all drives", with the exception of $(WindowsFolder) and its subfolders. (To
change this default exclusion, see ExcludeDirectory.) Notice that
"include all drives" means all fixed drives and all local drives (such as USB sticks or
USB-connected external drives), but does not include network shares.
ExcludeDirectory
and
IncludeDirectory
preferences, it is excluded. Exclusions (of the same
thing) always override inclusions. - File extension
- File name
- MD5 value.
exe
is included, filename
xcopy.exe
excluded, and MD5 value 123456...
(the MD5 for
xcopy.exe
) is included, then the inventory agent includes all files with
extension exe
except for all versions of xcopy.exe
that do
not have an MD5 value 123456...
.IncludeDirectory
IncludeNetworkDrives
IncludeFileSystemType
andExcludeFileSystemType
(on UNIX-like systems only).
IncludeDirectory
has lowest priority, and priority increases
down the list. This means that, on UNIX-like systems, IncludeFileSystemType
(the highest priority) can be an exception to the general rule that "exclude overrides
include". The following table illustrates cases where the other settings may over-ride the
IncludeDirectory
preference, where that specifies a network drive. The
first three cases fit the general rule, but the fourth is a special case:...FileSystemType | IncludeNetworkDrives | IncludeDirectory | Result |
---|---|---|---|
Not specified (including Microsoft Windows) |
|
A network share (or subdirectory thereof) on any file system type. |
No inventory returned. |
Not specified (including Microsoft Windows) |
|
A network share (or subdirectory thereof) on any file system type. |
Software inventory from the specified directory. |
|
Either |
A network share (or subdirectory thereof) on file system type
XXX (here, the setting is over-ridden by the exclude). |
No inventory returned. |
IncludeFileSystemType=XXX |
Either |
A network share (or subdirectory thereof) on file system type
XXX . |
Software inventory from the specified directory. |
IncludeDirectory
is not the only preference
that causes folders to be scanned. See also EmbedFileContentDirectory.Values
Values / range |
Valid folder(s) |
Default value |
Different defaults for different cases:
|
Example value |
|
Command line
Tool |
Inventory component (ndtrack) |
Example |
|
Registry
Installed by |
Installation of FlexNet inventory agent on a managed device (computer preference), or manual configuration |
Computer preference |
|
FlexNet Manager Suite (On-Premises)
2020 R2