ADQuery Documentation

ADQuery Documentation

Introduction

Systems administrators are often asked to gather information from managed systems about their Active Directory (AD) status, local user accounts, local groups, and answer questions such as:

  • Who are the Primary Users of all systems?

  • What AD groups is the system a member of?

  • What AD groups are the system's users a member of?

  • What local groups exist and what is their membership?

  • What local users exist, what is their group membership, and what is their status?

The Tanium platform is well-suited to gathering this sort of information, but care must be taken when using Active Directory at scale. What seems like a simple command or query could have a greater impact than expected.

Tanium sensors are designed to run quickly and return data as rapidly as possible, typically for thousands of systems at once. While a single system resolving an AD account's group memberships is lightweight, asking 1,000 endpoints to all provide that same information could result in a thousand simultaneous requests to Active Directory. Tanium's Core Content AD Query solution is intended to address the need to collect AD information from managed systems while avoiding the dangers of the direct query approach.

The Core Content AD Query (ADQuery) solution uses a Tanium Action to maintain a cache of Active Directory information, which Tanium Sensors can then use. This enables Tanium administrators to control distribution and execution of potentially network impacting queries.

  • Using the "endpoint view" of Active Directory in addition to the "directory view" allows an administrator to see misconfigurations and other unexpected outcomes which would not otherwise be apparent. Each system performs its own inventory of local and domain objects.

  • The inventory of the computer, users, and groups is stored locally on each system in the <Tanium Client Install Path>\Tools\ADQuery folder for later reporting.

  • The 'AD Query -*' sensors are used to retrieve inventoried information without impact to the Active Directory infrastructure.

Note:

It is not required to install the Tanium Client on a Domain Controller; the endpoints with the Tanium Client installed do need connectivity to the Domain Controller when it is inventoried.

ECF Instructions

With the release of Tanium Core Content - AD Query 3.3.4, Tanium Core AD Query Action Group needs to be updated by adding all applicable endpoints. The scheduled actions for AD Query will also need to be re-updated one last time to ensure full effect of the package.

For more information and steps on configuration, please visit our article on the Tanium Community site.

Release Notes

The release notes for AD Query can be found on the Tanium Resource Center.

Download Location

This content is available on the Solutions manifest of any licensed Tanium installation and is included by default in all Tanium Cloud instances.

Usage

Deploy the Inventory Action

  • Select or define the group of Windows endpoints that should query Active Directory. The AD Query - All Windows saved question is provided as a starting point.

  • Deploy the package Collect Active Directory Info.

  • Set the Distribute over Time (DoT) setting of three hours and a Reissue Interval of four hours. These settings introduce a random delay into action execution. When viewed from the perspective of all targeted systems, the action is effectively run over an extended time and spread out over the distribute over time period - starting from the specified action start time. Higher DoT and Reissue Intervals may be desirable in lower performance environments.

Content Upgrade Requirements

After upgrading from a previous version, customers are required to update or recreate all scheduled actions targeting the Collect Active Directory Info package to have the new package be referenced by scheduled actions and be run by endpoints. Failing to perform this scheduled actions update will cause endpoints to continue to run outdated package content.

Review Results

Use the sensors and saved questions included in this solution to review Active Directory data. 

Questions

Question Name

Question

Notes

AD Query - All Windows

Get Is Windows from all machines

Returns all Windows computers. Can be used for general targeting of the Collect Active Directory Info package.

AD Query - Has Stale Computer Results

Get AD Query - Has Stale Results[Computer,4] from all machines with AD Query - Has Stale Results[Computer,4] contains True

Returns computers that have AD computer data older than four hours. Can be used for specific, corrective targeting of the Collect Active Directory Info package.

AD Query - Has Stale Local Administrator Results

Get AD Query - Has Stale Results[Groups,4] from all machines with AD Query - Has Stale Results[Groups,4] equals True

Returns computers that have Local Administrator data older than four hours. Can be used for specific, corrective targeting of the Collect Active Directory Info package.

AD Query - Has Stale Results

Get Target from all machines with ( AD Query - Has Stale Results[Computer,4] contains True or ( AD Query - Has Stale Results[User,4] contains True or AD Query - Has Stale Results[Groups,4] contains True ) )

Returns computers that have AD user, computer, or Local Administrator data older than four hours. Can be used for specific, corrective targeting of the Collect Active Directory Info package.

AD Query - Has Stale User Results

Get AD Query - Has Stale Results[User,4] from all machines with AD Query - Has Stale Results[User,4] contains True

Returns computers that have AD user data older than four hours. Can be used for specific, corrective targeting of the Collect Active Directory Info package.

AD Query - Last Logged In User Info

Get Computer Name and AD Query - Last Logged In User Name and AD Query - Last Logged In User Date and AD Query - Last Logged In User Time from all machines

Returns computer name and the user name, login date, and login time for the most recent user login.

Packages

Package Name

Purpose

Notes

Collect Active Directory Info

If the computer is joined to Active Directory, this package runs an inventory for its Active Directory attributes and group memberships. Caching is used and distribution over time is strongly recommended to minimize network impact. Any responding domain controller will be used as a valid data source.

User Inventories all local user accounts Inventories all domain accounts for users who have recently logged onto the computer Collects user attributes and groups the user is a member of Queries Security Event Log for logon events from the last 30 days to determine a primary user and aid user detection.

Collects all local groups and their immediate members

This package must be run with a Distribute over Time value in order to reduce the number of systems simultaneously querying Domain Controllers.

All inventory is written to <Tanium Client Install Path>\Tools\ADQuery\Inventory.xml.

Package runtime output is logged to a rolling logfile in the <Tanium Client Install Path>\Tools\ADQuery folder.

This package has a built in fail safe that will only allow it to be run once every three hours. To manually override this behavior run this package with a Minimum time between runs value which is less than the action reissue interval.

For best performance results, we recommend the inventory only be collected when the endpoint has access to a domain controller. Add `/RequireDcConnection:1` to the package command line to ensure this behavior and reissue the scheduled action at a more frequent interval. It won't be run that frequently due to the Minimum time between runs limitation but it does ensure that you're catching systems as their connection state changes.

Sensors

Sensor

Description

AD Query - Computer Attributes

The value of the specified attribute of the computer's Active Directory object.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Computer Group Memberships

All Active Directory group memberships the computer is a member of -both explicitly and implicitly. Nested groups are also returned. The group is returned in NT format (SomeDomain\SomeGroup).

The sensor returns the group's Well Known Name.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Computer Groups

The distinguishedName of any Active Directory groups the computer is explicitly a member of (no nested groups). Also returns the computer's Primary Group. The group is returned from the memberOf attribute and is in RFC 1779 format(CN=TestGroup,OU=Sales,DC=MyDomain,DC=com).

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Computer Has Group Membership

Searches the computer's group inventory for membership in the specified group(s). Returns True if the computer is a member of the Active Directory group. Returns False if no match was found.

The default comparison is performed on the group's Well Known Name.

This may be overridden by prefacing the Group input with 'name:' - causing a compare to be performed on the group's non-translated name.

The group name may be specified as groupname or domain\groupname syntax. Multiple groups may be specified if separated by a comma. Ex: groupname,corp\groupname RegEx based comparisons are also supported.

Prefacing the Group input with 'regex:' will cause a RegEx compare to be performed.

Ex: regex:name:domain.* (compare the Name attribute for a match on the provided regex) Ex: regex:domain.* (compare the Well Known Name attribute for a match on the provided regex) This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Computer Site Name

The computer's Active Directory Site Name

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Domain Controller

The name of the Active Directory Domain Controller responding to queries.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Domain Controller Site Name

The Active Directory Site Name of the Domain Controller responding to queries.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Has Stale Results

Returns True/False value based on the time the AD Query XML files were generated and a time period the Active Directory data should be considered stale.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Last Logged In User Date

The date when the last user logged into the system

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Last Logged In User Name

The domain\name of the last user to log into the system This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Last Logged In User Time

The time when the last user logged into the system

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Last Run Status

Status information recorded when the inventory script last ran.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Last Run Timing

How long the inventory script ran start to finish.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local Administrators

Users and groups who are a member of the local Administrators group.

The sensor returns the Well Known Name of users and groups.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local Group Membership

Searches local group inventory to return group names and membership.

The sensor returns the Well Known Name of users and groups who are a member of the specified group(s).

Input 'all' in the Groups field to return all inventoried groups. The group's name should be specified as groupname syntax.

Multiple groups may be specified if separated by a comma. Ex: groupname1,groupname2 The default comparison is performed on the group's Well Known Name.

This may be overridden by prefacing the Groups input with 'name:' - causing a compare to be performed on the group's non-translated name.

The default member name returned is the member's Well Known Name.

This may be overridden by appending the Groups input with ':name' - causing the member's non-translated name to be returned.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local Groups

The names of all local groups. No group members are returned.

The sensor returns the group's Well Known Name.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local Objects Potentially Renamed

A multi-column list containing current object name, the well known name of the object, the object type, the system locale ID, and the system locale strings.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local User Account Control Flags

Parses the UserFlags attribute of local user accounts to report the following account control flags:

  • account disabled

  • allow encrypted password

  • expire password

  • has logon script

  • password expired

  • password required

  • smartcard required

  • user can change password

The sensor's default behavior checks the Well Known Name of users. Prefacing the User input with 'name:' will cause the sensor to search the non-translated name.

Input 'all' into the Users field to return the account control value from all inventoried users.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Local Users

Listing of all local users.

The sensor returns the Well Known Name of local users.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Logged In User Details

The following Active Directory attributes of the logged-in user: name (cn or name), department, co (country), city (l), email (mail), and telephoneNumber.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Logged In User Group Memberships

All group memberships the logged in user is a member of -both explicitly and implicitly. Nested groups are also returned. The group is returned in NT format (SomeDomain\SomeGroup).

The sensor returns the group's Well Known Name.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Logged In User Groups

The distinguishedName of any Active Directory groups the user is explicitly a member of (no nested groups). Also returns the user's Primary Group. The group is returned from the memberOf attribute and is in RFC 1779 format (CN=TestGroup,OU=Sales,DC=MyDomain,DC=com).

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Mismatched Site Names

Determines if there is an Active Directory Site Name mis-match between the computer and the Domain Controller responding to queries. This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User

The computer's primary user T

he sensor returns the Well Known Name of the primary user.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User Details

The following Active Directory attributes of the primary user: name (cn or name), department, co (country), city (l), email (mail), and telephoneNumber.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User Email Addresses

Gets the email addresses of the primary user from the mail and ProxyAddresses Active Directory attributes. This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User Group Memberships

All groups the primary user of the computer is a member of -both explicitly and implicitly. Nested groups are also returned. The group is returned in NT format (SomeDomain\SomeGroup).

The sensor returns the group's Well Known Name.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User Groups

The distinguishedName of Active Directory group memberships for the computer's primary user. The groups returned are those which the user is explicitly a member of (no nested groups). Also returns the user's Primary Group. The group is returned from the memberOf attribute and is in RFC 1779 format (CN=TestGroup,OU=Sales,DC=MyDomain,DC=com).

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - Primary User Has Group Membership

Searches Primary User group inventory for membership.

Returns True if the user is a member of the group.

Returns False if no match was found.

The default comparison is performed on the group's Well Known Name.

This may be overridden by prefacing the Groups input with 'name:' - causing a compare to be performed on the group's non-translated name.

The group may be a local group or an Active Directory group.

The group name may be specified as groupname or domain\groupname syntax.

Multiple groups may be specified if separated by a comma. Ex: groupname,corp\groupname RegEx based comparisons are also supported.

Prefacing the Groups input with 'regex:' will cause a RegEx compare to be performed.

Ex: regex:name:domain.* (compare the Name attribute for a match on the provided regex) Ex: regex:domain.* (compare the Well Known Name attribute for a match on the provided regex)

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - User Attribute Inventory

Returns the user name, the name of inventoried attributes and their value.

Input 'all' in the User field to return the attribute value for all inventoried users.

Input 'Primary' in the User field to return the attribute value for the primary user.

Input 'Current' in the User field to return the attribute value for all current user.

The user may be a local account or an Active Directory account.

The attribute may be a local attribute or Active Directory attribute.

The sensor's default behavior searches the user's Well Known Name. Prefacing the User input with 'name:' will cause the sensor to search the non-translated name.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - User Attributes

Returns the value of the attribute for the user.

The user may be a local account or an Active Directory account.

The attribute may be a local or Active Directory attribute.

Input 'all' in the User field to return the attribute value for all inventoried users.

The default comparison is performed on the user's Well Known Name.

This may be overridden by prefacing the User input with 'name:' - causing a compare to be performed on the user's non-translated name.

The user name may be specified as username or domain\username syntax.

Multiple users may be specified if separated by a comma. Ex: username,corp\username RegEx based comparisons are also supported.

Prefacing the User input with 'regex:' will cause a RegEx compare to be performed.

Ex: regex:name:username.* (compare the Name attribute for a match on the provided regex)

Ex: regex:username.* (compare the Well Known Name attribute for a match on the provided regex)

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - User Group Memberships

All group memberships the specified user is a member of -both explicitly and implicitly. Nested groups are also returned. The result is returned in NT format as UserDomain\UserName|GroupDomain\GroupName.

The sensor's default behavior checks the Well Known Name of users and returns the Well Known Name of any groups the user is a member of. Prefacing the User input with 'name:' will cause the sensor to search the non-translated name.

User names may be specified as username, domain\username. Multiple users may be specified if separated by a comma.

Ex: user,Local\user,corp\user,.\user Input 'all' into the Users field to return group membership of all inventoried users.

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

AD Query - User Has Group Membership

Searches user group inventory for membership.

Returns True if the user is a member of the group.

Returns False if no match was found.

The default comparison is performed on the user's and group's Well Known Name.

This may be overridden by prefacing the Users or Groups input with 'name:' - causing a compare to be performed on the non-translated name.

The user may be a local account or an Active Directory account.

The user may be specified as username and domain\username syntax.

Input 'any' in the Users field to test any inventoried user for membership.

Multiple users may be specified when separated by a comma. Ex: user,Local\localuser,corp\user,.\user

The group may be a local group or an Active Directory group.

The group may be specified as groupname and domain\groupname syntax.

Multiple groups may be specified if separated by a comma. Ex: group,Local\group,corp\group,.\group RegEx based comparisons are also supported.

Prefacing the Users or Groups input with 'regex:' will cause a RegEx compare to be performed.

Ex: regex:name:somename.* (compare the Name attribute for a match on the provided regex)

Ex: regex:somename.* (compare the Well Known Name attribute for a match on the provided regex)

This sensor is part of the Core AD Query Content solution. It will only return data after the Collect Active Directory Info package has completed an inventory.

Custom - AD Query - Logged In User Has Group Membership

Searches logged in user group inventory for membership.

Returns True if the user is a member of the group.

Returns False if no match was found.

Custom - AD Query - User Has Group Membership

Searches logged in user group inventory for membership.

Returns True if the user is a member of the group.

Returns False if no match was found.

How it works

Building a list of users to inventory

This detection has evolved over time to leverage additional techniques to improve its accuracy. One such change is now using the Event Log to help build a list of users to inventory in addition to using it for logon counts. We've also optimized the list by excluding unlock events and secondary logon events (psexec, runas, etc).

  • Query local user accounts

    1. The accounts are queried from the WMI Win32_UserAccount class with the criteria of LocalAccount='TRUE' and SIDType='1'

    2. Each account's Caption, Name, and SID is stored for processing later.

    3. Each account's profile path is obtained from the registry at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\<UserSID>\ProfileImagePath.

  • Query the Windows Event Log for logon events

    1. This query is performed using wevtutil.exe to report all logon events (types 2, 7, 10, 11) within the last 60 days.

    2. The query is limited to logon events having the LogonProcessName='User32 ' to exclude secondary logon events. This can be controlled via command line options to not be limited and to include other logon process names.

    3. The returned event collection is processed to remove unlock events - since these are not true distinct logons and cloud the data.

    4. The returned data is used to add to or update account data.

    5. The count of logons is summed for each account.

  • Supplement user account data

    1. Use registry session data from HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\SessionData

    2. Use registry profile data from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList

  • Set the last logon date for each account

    1. The Event Log logon data is used to set the last logon date for an account.

    2. If no logon data was returned for an account:

    3. The last modification date of the user profile file (if it exists) will be used to set the last logon date.

    4. The last modified date of a user profile file (ntuser.dat) might be updated by third-party tools independent of a user being logged on. This causes this modified date to be unreliable as a source to determine when a user was last logged on.

    5. If no date was determined from the event log data or the profile age, the age will be set to a default of 3652 days (10 years).

  • Filter out excluded accounts

    1. Remove accounts listed in the User SIDs to exclude or User names to exclude Inventory Exclusions.

  • Apply limits on the number of accounts to be processed

    1. The Number of user profiles value is used to reduce the number of accounts to the specified value.

Primary User Detection

Primary User detection is one of the core capabilities offered by the AD Query content. Below is a general flow of how this detection works.

Perform the following tasks using the data obtained from Building a list of users to inventory

  • Filter out excluded accounts

Remove accounts listed in the User SIDs to exclude or User names to exclude Primary User Exclusions.

  • Determine the Primary User

    1. If the Event Log query returned data and an accounts list is built, the accounts list is sorted by the number of account logons (descending order). The user with the highest logon count is the Primary User

    2. If the Event Log query was not successful, the currently logged in user will be set as the Primary User.

    3. If there is no current user, the Primary User is set to the last logged on user.

Inventory reuse and update

The inventory process has been optimized to reduce the number of calls to Active Directory for name resolutions by re-using inventory already collected by previous inventory actions. Updates to the inventoried names is controlled by randomization and maximum age triggers. Please see the Command line reference for details on the following command line options that control update timings: GroupMembershipSidsMaxMinsOld, GroupMembershipSidRandomization, UserNamesMaxMinsOld, UserNameRandomization

Prestaging common names

The inventory process attempts to communicate with an Active Directory Global Catalog to obtain a listing of domains and also with an Active Directory Domain Controller to resolve domain object SID's to their names and collect additional inventory data. Conditions might exist that cause these two activities to fail, such as:

  • The system does not have access to a Domain Controller or a Global Catalog server

  • The object cannot be queried by LocalSystem due to restricted permissions (either in the same domain or a trusted domain)

  • The object is a virtual object that cannot be queried by methods available to VBScript

To overcome these issues, the inventory process supports pre-staging the names via an xml file that is populated by the customer and uploaded to the Collect Active Directory Info package as prestagednames.xml. When the inventory process attempts to resolve a SID to its names, a check will first be performed to determine if the xml file has been provided and if it has a match on the SID. The provided names will be used if a match is found. If the xml file also contains a list of domains, the domain data is read and used during the inventory process. The format of this file is illustrated in the example below.

<SIDs> ‹!-- Prestaged domain information --› <SID> <objectSid>myDomainSID</objectSid> <dnsDomain>myDomain.dns.name</dnsDomain> <distinguishedName>myDistinguishedName</distinguishedName> <type>domain</type> </SID> ‹!-- Prestaged SID to user mapping --› <SID> <objectSid>myObjectSID</objectSid> <domain>mydomain</domain> <name>myname</name> <path>mypath</path> <nameWellKnown>mywellknownname</nameWellKnown> </SID> </SIDs>

Note:

This file can be pre-staged on endpoints and referenced by the inventory process using the SidToNamesMappingFile command line parameter (see Command line reference below).

Overriding sensor attributes

There are occurrences where sensors need to return a different attribute than its default. An example case is wanting to return samAccountName instead of the WellKnownName of the object.

Many sensor supported what's called Sensors Attribute Override option which allows customers to specify the attribute to use as the source for each sensor column. This functionality is provided via an xml file that is populated by the customer and deploy to endpoints. When a supported sensor reads data from the inventory file, a check will first be performed to determine if the <Tanium Client Install Path>\Tools\ADQuery\SensorAttributeOverrides.xml file exists and if it has a match on the sensor name and contains a specified alternate attribute. The format of this file is illustrated in the example below.

<Overrides> <LocalGroups> <name>name</name> </LocalGroups> <LocalUsers> <name>displayName</name> </LocalUsers> <LoggedInUserDetails> <name>displayName</name> <department>department</department> <country>co</country> <city>l</city> <email>mail</email> <telephoneNumber>telephoneNumber</telephoneNumber> <domainRegEx>someRegEx</domainRegEx> <nameRegEx>someRegEx</nameRegEx> </LoggedInUserDetails> <PrimaryUser> <name>name</name> <domain>domain</domain> <domainRegEx>someRegEx</domainRegEx> <nameRegEx>someRegEx</nameRegEx> </PrimaryUser> <PrimaryUserDetails> <name>displayName</name> <department>department</department> <country>co</country> <city>l</city> <email>mail</email> <telephoneNumber>telephoneNumber</telephoneNumber> <domainRegEx>someRegEx</domainRegEx> <nameRegEx>someRegEx</nameRegEx> </PrimaryUserDetails> </Overrides>

Sensors Supporting Attribute Override

  • AD Query - Local Groups

  • AD Query - Local Users

  • AD Query - Logged in User Details

  • AD Query - Primary User

  • AD Query - Primary User Details

Customers implementing this functionality should place this SensorAttributeOverrides.xml in a new package that enables distribution to their systems. A recommended package name is CustomerName - AD Query - SensorAttributeOverrides.

The template file should be tailored by customers to meet their needs and then uploaded to the new package.

The command line of this package should be something like: cmd /c xcopy SensorAttributeOverrides.xml ..\..\Tools\ADQuery\ /y

After the package is created, it should be deployed to all systems requiring the override feature.

Command line reference

There have been a number of command line arguments added to the Collect Active Directory Info package to control the inventory operations. These are described below.

Argument Name

Description

Example

ComputerInv

Enable inventory of computer attributes and group memberships. Only valid for systems joined to an Active Directory domain. Enabled=1 Disabled=0

/ComputerInv:1

GroupInv

Enable inventory of local groups. Group inventory is also conducted if user inventory is enabled. Enabled=1 Disabled=0

/GroupInv:1

UserInv

Enable inventory of local users. Enabled=1 Disabled=0

/UserInv:1

MinMinsBetweenRuns

The inventory will only be collected if this number of minutes have elapsed since the last collection. Valid value is any number >= 0.

/MinMinsBetweenRuns:180

DCsAreAllowed

Allow collecting inventory on Domain Controllers. Enabled=1 Disabled=0

/DCsAreAllowed:0

DomainProfileinvCount

The number of domain user profiles to collect. Valid value is any number >= 0.

/DomainProfileInvCount:30

UserPropsInv

Comma delimited list of domain user properties to be collected during inventory.

/UserPropsInv:"comma delimited list of items"

CompPropsInv

Comma delimited list of computer properties to be collected during inventory.

/CompPropsInv:"Explicit list of items"

UserSIDsNoInventory

Comma delimited list of user SIDs who should be excluded from inventory.

/UserSIDsNoInventory:"Explicit items or regular expressions"

UserNamesNoInventory

Comma delimited list of user names who should be excluded from inventory.

/UserNamesNoInventory:"Explicit items or regular expressions"

UserSIDsNoPrimary

Comma delimited list of user SIDs to be excluded from primary user detection.

/UserSIDsNoPrimary:"Explicit items or regular expressions"

UserNamesNoPrimary

Comma delimited list of user names to be excluded from primary user detection.

/UserNamesNoPrimary:"Explicit items or regular expressions"

LogVerbosity

Amount of info written to log. Valid values are: 0 Nothing, 1 Error or Warn, 2 Info, 3 Debug, 4 Trace, 5 Highest

/LogVerbosity:1