Troubleshooting Enforce

If Enforce is not performing as expected, you might need to troubleshoot issues or change settings.

Collect logs

Enforce Logs

Log information is saved as a ZIP file that you can download with your browser.

  1. From the Main menu, go to Modules > Enforce to open the EnforceOverview page. Click Help help and then click Troubleshooting.
  2. In the Collect Information for Support Requests section, select the additional solutions for which to gather troubleshooting packages. All available solutions are selected by default.
  3. Click Download Support Bundle. tanium-solution name-support-[timestamp].zip files download to the local download directory.
  4. Contact Tanium Support to determine the best option to send the ZIP files.

Endpoint Logs

Use the following information to collect logs from your endpoints.

Table 1. Enforce endpoint logs

Log Source

Description

Policy database

The Enforce configuration database.

Go to <tanium client directory>\extensions\enforce\policy.db.

Group policy export

A record of domain and local policies that are applied to the endpoint.

To generate this export, from the command line on the endpoint, enter: gpresult/h gpo-report.html.

Extensions log

A log of Active Directory administrative template (ADMX) group polices.

Go to <tanium client directory>\Logs\extensions0.txt.

During the troubleshooting process, for best results, increase the log verbosity level.

  1. From the command line on the endpoint, enter, TaniumClient.exe config set Logs.extensions.enforce.LogVerbosityLevel 99.

  2. Restart the Tanium Client.

When you finish troubleshooting, remove the setting.

  1. From a command line on the endpoint, enter TaniumClient.exe config remove Logs.extensions.enforce.LogVerbosityLevel.

  2. Restart the Tanium Client.

Enforce log

A log of Enforce actions.

Go to <tanium client directory>\Logs\enforce.txt

You can also use Client Management to directly connect to an endpoint and collect the artifacts above. For more information, see Troubleshooting Tanium Clients and Client Management.

Update default log level

  1. From the Main menu, go to Modules > Enforce to open the Enforce Overview page. Click Help help and then click Troubleshooting.
  2. In the Log Level section, select the log level.

Review AppLocker event logs

To see more details about AppLocker blocks on Windows endpoints, review the AppLocker event logs in Event Viewer.

  1. Open the Control Panel on the Windows endpoint and then click System and Security > Administrative Tools.

  2. To open the Event Viewer, double-click Event Viewer.

  3. Expand Applications and Services Logs and click either Tanium Enforce - AppLocker or Tanium Enforce - AppLocker - MSI and Script.

  4. Double-click any of the events to review more details about AppLocker blocks.

All AppLocker logs are gathered into the Tanium Enforce - AppLocker event log when aggregate results is run. Each of the two log file sizes is 10 MB.

Use Enforce sensors

The following list is a sample of available Enforce sensors. To view all sensors, go to Administration > Content > Sensors.

Note: Not all Enforce sensors report back the most recent data. Most sensors provide information that is gathered during the latest validation check on the endpoint. Validation checks are performed at intervals of approximately 15 minutes.
Enforce - Anti-Malware Definition Outdated

Reports the current Windows anti-malware definition version installed on the computer is out of date.

Enforce - Anti-Malware Definition Version

Reports the current Windows anti-malware definition version installed on the computer.

Enforce - Anti-Malware Engine Version

Reports the current Windows anti-malware engine version installed on the computer.

Enforce - Anti-Malware Threat Details

Reports all anti-malware threats along with detection date, process name, and file paths.

Enforce - Anti-Malware Threats Last X Days

Given a number of days in the past, this sensor reports all anti-malware threats since that date.

Enforce - Anti-Malware Threat Counts Last X Days

Given a number of days in the past, this sensor reports all anti-malware threats counts since that date.

Enforce - Total Anti-Malware Threats Last X Days

Given a number of days in the past, this sensor reports to the total number of anti-malware threats detected since that date.

Enforce - Coverage Status

Returns "Optimal" if Enforce is installed and running, "Needs Attention" if Enforce is not installed or is not healthy, "Unsupported" if the operating system is not supported.

Enforce - Device Setup Classes

Lists all device setup classes.

Enforce - Diagnostic - Applied Machine Policies

Specifically for small scale diagnostics. Returns the status of machine policy settings that are applied or partially applied on endpoints

Enforce - Diagnostic - Applied Policy Settings

Specifically for small scale diagnostics. Returns a list of all policy items to be applied on endpoints, including those that do not apply because they are superseded by a duplicate setting.

Enforce - Firewall Rules [Linux]

Reports all configured firewall rules on Linux endpoints.

Enforce - Firewall Rules [Windows]

Reports all configured firewall rules.

Enforce - Host Firewall Enabled

Returns Yes if firewall is enabled. Otherwise, it returns No.

Enforce - Machine Policy Status

Given a list of Policy Id numbers, reports the enforcement status of each.

Enforce - Machine Policy Status [VBS]

Given a list of Policy Id numbers, reports the enforcement status of each. Unlike other sensors, VBS sensors provide up-to-the-minute results.

Enforce Managed Definitions Targeting

Used for targeting Tanium Enforce Managed Definitions packages. This sensor determines if a host should require download and execution of the definitions package.

Enforce Prerequisites

Reports the installed prerequisites needed by some Enforce policies.

Enforce - USB Storage Devices

Lists hardware IDs for all USB storage devices.

Enforce - Tools Version

Reports support and installation details. Checks if the endpoint supports the tools and has enough disk space. If a package has been deployed, reports the install location, version of tools, and if all the required tools are present.

Resolve Active Directory policy conflicts

Enforce uses Local Group Policy Objects (LGPO) to apply policy settings that cannot be applied using a configuration service provider (CSP). When a setting is applied using LGPO, if an endpoint is joined to a domain and is receiving a domain policy that contains the same policy setting Enforce is trying to apply, the Domain Group Policy (DGPO) takes precedence. To resolve this, the DGPO policy setting must be set to Not configured for Enforce to manage it.

Domain-joined endpoints attempt to reach out to a domain controller to resolve conflicts between DGPO and LGPO settings when Enforce applies policies on the endpoint (at the initial enforcement time and then every 60 minutes thereafter). If a domain-joined endpoint cannot reach a domain controller, the endpoint cannot determine if LGPO settings are in conflict with DGPO settings. In this case, LGPO settings are not applied and consequently Enforce cannot apply policies of this type.

To determine whether an endpoint has policy settings that cannot be applied due to a lack of connectivity with the domain controller, ask this question in Interact: Get Client Extensions - Status contains Enforce from all machines and look for a gpo_failure key with the value with No Domain Controller connectivity. You can drill down into that row in the results to identify the specific endpoints.

Example screen capture from Enforce that shows the No Domain Controller connectivity error
Note:
  • Conflicting DGPO and LGPO settings are reported as either Not Applied (only one policy setting exists in the policy and it conflicts with DGPO) or Partially Applied (more than one policy setting exists in the policy and at least one is in conflict with DGPO). Enforce does not apply policy items that are in conflict with DGPO. The group policy engine on the endpoint resolves that internally. The enforcement status drill down reports in the Reason column that the setting was verified with no items applied.

  • An LGPO setting that does not use a GPO client-side extension (CSE) is applied directly to the registry. These settings show as Applied even if the endpoint cannot connect to the domain controller. For more information about CSE, see Microsoft: Client-side Extensions.

Review policy settings when Windows Defender tamper protection is enabled

When you enable tamper protection in Windows Defender, the following policy settings are locked with their default values and cannot be edited through group policy. These settings may cause log errors if configured as part of an anti-virus policy or machine administrative template policy. For more information about settings that are disabled by Windows Defender tamper protection, see Microsoft Documentation: Protect security settings with tamper protection.

Review the status for policy settings on Windows endpoints

When you enforce a Bitlocker policy, Machine Administrative Template policy, Security Settings policy, or User Administrative Template policy, settings on supported Windows 10 and later endpoints are applied using configuration service providers (CSPs) when possible. For more information, see Configuration Service Providers (CSPs). Policy settings that cannot be applied using a CSP are applied using Local Group Policy (LGPO), the Group Policy Security Settings extension, or the Group Policy Audit Configuration Extension.

To check the status of a policy setting on Windows endpoints, you can ask this question: Get Enforce - Diagnostic - Applied Policy Settings from <targeted endpoints> in Interact. In the results, the Status column shows the status and how the setting was applied. For example:

Table 3. Policy setting statuses

Status

Meaning

CSP:VERIFIED_FULL SECURITY:VERIFIED_NOT_APPLIED

CSP:VERIFIED_FULL indicates that the setting was successfully applied on the endpoint using a CSP. The SECURITY:VERIFIED_NOT_APPLIED status can be ignored; the setting application was not attempted using the Group Policy Security Settings extension because the setting was already successfully applied using a CSP.

CSP:VERIFIED_NOT_APPLIED LGPO:VERIFIED_FULL

CSP:VERIFIED_NOT_APPLIED indicates that the setting was not successfully applied on the endpoint using a CSP. The setting was then successfully applied using Local Group Policy (LGPO).

LGPO:VERIFIED_SUPERSEDED

The setting was superseded by another policy with a higher priority. Check the Errors column for the policy ID of the policy that superseded the setting. For more information about prioritizing policies, see Prioritize policies.

LGPO:VERIFIED_FULL

The setting was successfully applied using LGPO. Either the setting or the endpoint operating system is not supported by CSP, so that method was not attempted.

AUDIT:VERIFIED_FULL

The setting was successfully applied using the Group Policy Audit Configuration Extension. Audit settings are not supported for application using a CSP, so that method was not attempted.

CSP:VERIFIED_ERROR LGPO:VERIFIED_FULL

An error occurred when attempting to apply the setting using a CSP, but the setting was successfully applied using LGPO. Check the Errors column for more information on the CSP error. If both methods fail with an error, the setting application retries later. For more information, see Enforcing policies.

Regenerate the Key Encryption Key to align with security best practices

When you upgrade to Enforce 2.4.230 or later from an earlier version, you might receive this message in the workbench: Key encryption key needs to be regenerated to align with latest security best practices. Visit Settings to generate a new key encryption key and re-encrypt existing keys.

Example screen capture from Enforce that shows the banner that appears when the key encryption key needs to be regenerated

For more information about regenerating the Key Encryption Key, see Windows: Generate the Key Encryption Key and Mac: Generate the Key Encryption Key.

"Access is Denied" error when attempting to manually encrypt a removable drive

If you attempt to manually encrypt a removable drive using BitLocker in a remote desktop session (RDP), you might receive this error: Access is denied. This error can occur in this scenario if the All Removable Storage: Allow direct access in remote sessions policy setting is not enabled. To resolve this error, either enable BitLocker using the local console (not over RDP) or enable the policy setting using a Machine Administrative Template policy. This setting is in the System > Removable Storage Access section of the policy.

Translate encryption method values in an exported BitLocker policy

When you export a BitLocker policy, the encryption method settings appear in the JSON as unsigned integer values rather than algorithm names. To translate these integers to the corresponding algorithm, see BitLocker encryption method values in exported policies.

Verify endpoint tools

If you are experiencing issues such as a feature not working on an endpoint or seeing incorrect data in the workbench, confirm that your endpoints have the latest toolset version. For more information, see Troubleshooting Endpoint Configuration.

Identify and resolve issues with Client Extensions

Use the following steps to troubleshoot issues with the Client Extensions that Enforce installs and uses. During troubleshooting, consider environmental factors such as security exclusions, file locks, CPU usage, RAM usage, and disk failures.

Tip: For more information about the Client Extensions that Enforce installs and uses, see Client extensions and endpoint tools.
  1. If endpoints have Client Extension shared process mode enabled and you need to troubleshoot resource usage or crashes in the combined TaniumCX.exe or TaniumCX process, disable shared process mode on the affected endpoints, and then reproduce the issue if possible. For more information, see Managing installed endpoint tools.
  2. To review the health of Client Extensions or to start an investigation into an existing error, ask a question using the Client Extensions - Status or Enforce - Tools Version sensor.

    The results of these questions help to identify endpoints with errors and provide a starting point to deploy actions that might help correct the issue. Filter the results and drill down as necessary to investigate results that indicate errors.

    Tip: Consider whether endpoints with errors share common characteristics, such as operating system, domain or organization unit, or the antivirus software that is installed.
  3. Target one or more endpoints with errors, and uninstall tools that report errors without blocking reinstallation. For more information, see Remove Enforce tools from endpoints and Troubleshooting Endpoint Configuration.
    CAUTION: When you perform a hard uninstallation of some tools, the uninstallation also removes data that is associated with the tool from the endpoint. This data might include important historical or environmental data. If data that you want to keep is associated with the tool, make sure you perform only a soft uninstallation of the tool.

    Wait for automatic reinstallation of the tool. If the reinstallation does not resolve the issue, continue to the next step.

  4. Ask a question using the Endpoint Configuration - Tools Status Details sensor, and include filters to limit the results to the tool that you are investigating. For example:

    Get Endpoint Configuration - Tools Status Details having Endpoint Configuration - Tools Status Details:Tool Name contains Enforce from all machines with Endpoint Configuration - Tools Status:Tool Name contains Enforce

    Review the columns in the results for specific information about errors. The following table provides guidance for some common error conditions:

    Table 4. Potential errors returned by the Ednpoint Configuration - Tools Status Details sensor

    Error Condition

    Possible Resolution

    No error appears, but an available new version has not been installed

    Review the Targeted Version column to make sure that the endpoint has received the latest manifest. If the targeted version does not yet show the updated version, the Endpoint Configuration manifest has not updated on the endpoint, usually for one of the following reasons:

    • The manifest update is still pending. Either wait for the manifest to update and then review the results again, or follow the steps in Troubleshooting Endpoint Configuration.

    • Action lock is enabled on the endpoint. Follow the steps in Troubleshooting Endpoint Configuration to identify endpoints with action lock turned on.

    • Enforce is no longer installed, or it is no longer targeting the endpoint. In some cases, Enforce might stop targeting an endpoint because it no longer needs the endpoint for a particular workload. Consider whether Enforce should still target the endpoint:

      • If it is expected or intentional that Enforce no longer targets the endpoint, you can optionally uninstall Enforce tools and dependencies. For more information, see Remove Enforce tools from endpoints.

      • If Enforce should still target the endpoint, make sure that the Enforce action group includes the endpoint, and make sure Enforce targets the endpoint in any expected configurations or profiles. Then, either wait for the manifest to update and then review the results again, or follow the steps in Troubleshooting Endpoint Configuration.

    Installation Blocker: Unmet Dependencies: [Tool name]

    If no Failure Message or Failure Step appears, the endpoint might be waiting for the dependencies to install. Wait to see if the condition resolves on its own. If this condition remains for an extended period, ask the question again and review any error information in other columns, especially the Failing Dependency column.

    Failing Dependency: [Tool name]

    Ask the question: Endpoint Configuration - Tools Status Details having Endpoint Configuration - Tools Status Details:Tool Name contains [Tool name] from all machines with Endpoint Configuration - Tools Status:Tool Name contains [Tool name]

    Investigate further errors with the tool.

    If the dependency has not been installed on an endpoint, ask the question: Get Endpoint Configuration - Tools Retry Status from all machines with Computer Name equals Computer_Name to review the retry status for the tool installation. For more information, see Managing installed endpoint tools.

    Manually Blocked: blocked

    The tool was previously blocked, either manually or during a previous uninstallation. Unblock the tool. For more information, see Managing installed endpoint tools.

  5. Review the Extensions logs on the endpoint. Take note of entries that include fail or error. For more information, see Review the Extensions log for an endpoint.

For additional help, Collect logs, and Contact Tanium Support.

Review the Extensions log for an endpoint

Use Client Management to directly connect to an endpoint and view and download extension logs.

  1. From the Main menu, go to Shared Services > Client Management.

  2. From the Client Management menu, click Client Health.

  3. In the Direct Connect search box, enter all or part of an IP address or a computer name.

    Matching results are displayed after the search completes.

  4. From the search results, click the computer name to connect to the endpoint.

  5. Click the Logs tab, and select an extensions[#].log file.

  6. (Optional) To download the log, click Download.

For additional help, Collect logs, and Contact Tanium Support.

Remove Enforce tools from endpoints

You can deploy an action to remove Enforce tools from an endpoint or computer group. Separate actions are available for Windows and non-Windows endpoints.

Important: Before you remove Enforce tools, be sure to remove enforcements for any policies that you no longer want to enforce on the endpoint. For more information, see Remove an enforcement.
  1. In Interact, target the endpoints from which you want to remove the tools. For example, ask a question that targets a specific operating system: Get Endpoint Configuration - Tools Status from all machines with Is Windows equals true
  2. In the results, select the row for Enforce, drill down as necessary, and select the targets from which you want to remove Enforce tools. For more information, see Analyzing question results in Interact.
  3. Click Deploy Action.
  4. For the Deployment Package, select Endpoint Configuration - Uninstall Tool [Windows] or Endpoint Configuration - Uninstall Tool [Non-Windows], depending on the endpoints you are targeting.
  5. For Tool Name, select Enforce.
  6. (Optional) By default, after the tools are removed they cannot be reinstalled. To allow tools to be automatically reinstalled, clear the selection for Block reinstallation. Re-installation occurs almost immediately.
    Note:

    If reinstallation is blocked, you must unblock it manually:

    • To allow Enforce to reinstall tools, deploy the Endpoint Configuration - Unblock Tool [Windows] or Endpoint Configuration - Unblock Tool [Non-Windows] package (depending on the targeted endpoints).

    • If you reinstall tools manually, select Unblock Tool when you deploy the Endpoint Configuration - Reinstall Tool [Windows] or Endpoint Configuration - Reinstall Tool [Non-Windows] package.

  7. (Optional) To remove all Enforce databases and logs from the endpoints, clear the selection for Soft uninstall.
    CAUTION: When you perform a hard uninstallation of some tools, the uninstallation also removes data that is associated with the tool from the endpoint. This data might include important historical or environmental data. If data that you want to keep is associated with the tool, make sure you perform only a soft uninstallation of the tool.
  8. (Optional) To also remove any tools that were dependencies of the Enforce tools that are not dependencies for tools from other solutions, select Remove unreferenced dependencies.
  9. (Optional) In the Deployment Schedule section, configure a schedule for the action.
    Note: If some target endpoints might be offline when you initially deploy the action, select Recurring Deployment and set a reissue interval.
  10. Click Show preview to continue.
  11. A results grid appears at the bottom of the page showing you the targeted endpoints for your action. If you are satisfied with the results, click Deploy Action.
Note: If you have enabled Endpoint Configuration approval, tool removal must be approved in Endpoint Configuration before tools are removed from endpoints.

Uninstall Enforce

  1. From the Main menu, go to Administration > Configuration > Solutions.

  2. Select Enforce and click Uninstall. Click Yes to complete the process.

Note:
  • After you uninstall Enforce you might need to disable the associated firewall policies to ensure they are cleanly removed from endpoints in some instances, such as if some endpoints are offline when you uninstall Enforce. In this case, deploy actions including the Remove Enforce Firewall Rules package that was created when Enforce was installed. For more information, see Disable and remove Enforce firewall policies.

  • To complete a clean uninstallation and removal of Enforce policies, you must uninstall Enforce before you disable the associated firewall policies.

Disable and remove Enforce firewall policies

You might need to disable Enforce firewall policies after you uninstall Enforce, which might occur if some endpoints are offline when you uninstall Enforce. In this case, deploy actions including the Remove Enforce Firewall Rules package that was created when Enforce was installed. For more information about packages and deploying actions, see Managing scheduled actions and action history and Managing packages for platform actions.

To disable and remove Enforce firewall policies, first find all of the endpoints that are online and then deploy the removal package.

  1. From the Main menu, click Interact.
  2. Ask a question to target the endpoints from which you want to remove the policies. For example, Get Enforce - Tools Version from all machines.
  3. Select the row for the endpoints from which you want to remove the policies.
  4. Click Deploy Action.
  5. Select the Remove Enforce Firewall Rules Package.
  6. Click Show preview to continue in the Targeting Criteria section.
  7. Review the targeted endpoints.
  8. Click Deploy Action and enter your credentials. The Action Summary page appears.
Important: The Remove Enforce Firewall Rules package removes all firewall rules created by Enforce. It does not disable the firewall on the endpoint.

Contact Tanium Support

To contact Tanium Support for help, sign in to the Tanium Customer Community.

For more information about how to submit a support case, see .