Enforcing policies

How you enforce a policy depends on the type of policy you want to enforce:

  • You enforce remediation policies from the Enforcements tab of the Device Actions page.

  • You enforce all other policy types from the Enforcements tab of the Policy Configurations page.

You can also click a policy name and create an enforcement from the policy page.

After you create a policy, it is enforced in the following scenarios:

  • The enforcement is first created

  • Changes are made to the policy corresponding to the enforcement

  • The Tanium Client or Tanium Client process restarts on an endpoint

  • At the beginning and end of the enforcement schedule

  • Enforce detects a failed or incomplete verification of policies

  • (User Administrative Template policies) When a user signs in to an endpoint

Enforce verifies policies approximately every 15 minutes.

Applying policy settings on endpoints

The policy type and endpoint setup determine how policy settings are applied.

Configuration service providers (CSPs)

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. Settings that can be applied using a CSP are annotated with this icon shield-check in the Enforce policy. When you apply policies using a CSP, domain-joined endpoints do not need to be connected to a Domain Controller to configure settings, unlike policy application using Group Policy Object (GPO). If an Enforce policy setting is applied using a CSP that is also applied by a group policy, local policy, or already configured manually in the registry, the setting that is applied by the CSP takes precedence. This means that you do not need to first configure settings as Not Configured before you can configure a setting using a CSP. For more information about CSPs, see Microsoft Documentation: What is a CSP?.

Enforce uses the WMI-to-CSP Bridge to apply policies on endpoints, so a mobile device management (MDM) service is not required to use this feature. For more information about the WMI-to-CSP Bridge, see Microsoft Documentation: The WMI-to-CSP Bridge.

Microsoft Policy DDF files determine which policy settings can be applied using a CSP. For more information about Policy DDF files, see Microsoft documentation: Policy DDF file. To determine the earliest supported Windows 10 operating system versions for a specific setting, hover over shield-check next to the setting. For more information about the supported operating system versions for each policy setting, see Microsoft Documentation: Policy Areas.

Enforce policies that were created before the Enforce update on January 30, 2023 are not applied using a CSP by default. To apply existing policies using a CSP, edit and re-save the policy.

Note: On Windows 10 version 1709 and earlier endpoints, policies enforced using GPO might override policies enforced using a CSP because the ControlPolicyConflict setting is not available. In this scenario, a message is logged to the endpoint client extension log: Group Policy will override CSP policies in Windows 10 Version 1709 and earlier. For more information about this limitation, see Microsoft Blog: Windows 10 Group Policy vs. Intune MDM Policy who wins?.

ADMX-backed CSP

Some settings in Machine Administrative Template and User Administrative Template policies are applied using ADMX-backed CSP. For more information, see Microsoft Documentation: ADMX-backed policies in Policy CSP.

Local Group Policy (LGPO)

When you enforce an AppLocker, Device Control - All Devices, or Device Control - Removable Storage policy, settings are applied using Local Group Policy (LGPO)

For policy settings that are applied using LGPO, domain-joined endpoints must be able to connect to a domain controller so that Enforce can resolve conflicts and apply some settings. For more information, see Resolve Active Directory policy conflicts.

This requirement does not apply to Windows endpoints that are not joined to a domain or are EntraID-joined, Security Policy settings, or configuration service providers (CSPs).

Scheduled actions

When you enforce an Anti-Malware, Remediation, Remediation Purge, or Software Restriction policy, settings are applied using Tanium scheduled actions. These policies are not reported on by the Enforce - Diagnostic - Applied Policy Settings sensor. Instead, you can check the action history and action logs for status. For more information about scheduled actions, see View status for simple actions.

API or CLI

When you enforce a FileVault, Firewall - Windows, or Firewall - Linux policy, settings are applied using the API or CLI on the endpoint.

Note:
  • Settings in Windows firewall policies are not applied on endpoints where there are existing firewall settings managed by a GPO linked to a domain. In this scenario, the enforcement status is Not Applied with the reason GPO firewall rules found on endpoint.
  • If a legacy Windows firewall policy is superseded by a Windows firewall policy that applies settings using LGPO, the status of the legacy policy is Superseded with the reason Policy has been superseded by an LGPO firewall policy.

Create enforcements

Create an enforcement for a remediation policy

  1. From the Main menu, go to Modules > Enforce > Device Actions > Enforcements > Create.
  2. Enter a name for the enforcement and select a policy.
  3. Go to Complete the enforcement creation to continue creating the enforcement.

Create an enforcement for a cluster policy

  1. From the Main menu, go to Modules > Enforce > Policy Configurations > Enforcements > Create.
  2. Enter a name for the enforcement and select a policy.
  3. Go to Complete the enforcement creation for a cluster policy to continue creating the enforcement.

Create an enforcement for all other types of policies

  1. From the Main menu, go to Modules > Enforce > Policy Configurations > Enforcements > Create.
  2. Enter a name for the enforcement and select a policy.
  3. Go to Complete the enforcement creation to continue creating the enforcement.

Create an enforcement from an individual policy

  1. From the Main menu, go to Modules > Enforce to open the Enforce Overview page. From the Enforce menu, complete one of the following tasks:
    • For a remediation policy, click Device Actions > Remediations.

    • For all other policy types, click Policy Configurations > Policies.

  2. Click the policy to be enforced and then click Enforce enforce-badge-icon.
  3. Enter a name for the enforcement.
    Example screen capture from Enforce that shows the Enforce button on the policy page

    The policy that you selected is automatically populated in the Policy field.

  4. Go to Complete the enforcement creation to continue creating the enforcement.

Complete the enforcement creation

  1. In the Targeting section, click Select Computer Groups, select one or more computer groups and then click Save. To search for a group, type the first few letters of the group into the search field.
    Note: You might not have access to all computer groups that appear in the target list. Click All and Available in the target window to see every computer group or only the ones that you have permissions to view. Additionally, rules might limit your access to computers within the groups you select. For more information, see Role-based access control and configuration visibility.
    target-groups
  2. (Optional) Select Additional Filtering Criteria:
    • Specify Endpoints: Enter a comma-separated list of computer names into the Computer Names field. This list cannot exceed 50 computer names.
    • Question Criteria: Enter a filter question or use the Filter Builder to build a filter.
    Note:
    • If specified, the Additional Filtering Criteria is joined with the targeted computer groups using a logical AND.

    • You can use Additional Filtering Criteria to exclude endpoints from the targeted computer groups. If you use a question or rule, exclude computers by using a does not contain, does not match, or similar condition.

  3. In the Preview section, review the computers that you want to target.
  4. (Optional) In the Scheduling section, select the Include Start Time and Include End Time options for the enforcement.
    • Schedule a start time.
    • Schedule an end time if you want the policy enforcement to expire after a certain time frame. For example, allow writing to removable drives for only a finite period of time.
    Note:
    • When you select Include Start Time or Include End Time, Coordinated Universal Time (UTC) is selected and displayed by default. If you change the time to Endpoint Local Time (ELT), the selected time does not automatically update to reflect ELT. You must select a valid ELT before you can create the enforcement.

    • When you schedule an enforcement, allow enough time for the endpoint to receive the scheduling information. If the endpoint receives the scheduling information after the scheduled end time, then the enforcement does not run.

  5. (Optional) For remediation policies, you can also set the following options:
    • Repeat: Select this option to repeat the action. The minimum allowed value for this field is 60 minutes.
    • Distribute Over Time: Control whether endpoints apply enforcements the moment they receive the action (immediate) or randomly within the saved action interval (diffused). Diffusing enforcements over time can help prevent a surge in network traffic in exchange for a slower time to compliance.
  6. Click Create to create the enforcement.
Note: To un-enforce or remove a policy from an endpoint, delete the enforcement. For more information, see Remove an enforcement.

To view the status of an enforcement on the Enforcements tab of the Policy Configurations page, click the arrow next to an enforcement to expand the status information. You can also view the status information in the Summary section of the enforcement details page. For more information about each enforcement state, see Enforcements.

Complete the enforcement creation for a cluster policy

  1. In the Targeting section, click Select Computer Groups, select one or more computer groups and then click Save. To search for a group, type the first few letters of the group into the search field.
    Note: You might not have access to all computer groups that appear in the target list. Click All and Available in the target window to see every computer group or only the ones that you have permissions to view. Additionally, rules might limit your access to computers within the groups you select. For more information, see Role-based access control and configuration visibility.
    cluster_target_groups
  2. Specify the Cluster Labels to identify the targeted cluster. This label is assigned when you deploy the Tanium client to a cluster. For more information, see Generate the deployment files. If you do not provide a Cluster Label, the policy is enforced on all clusters in the environment.
  3. Click Create to create the enforcement.
Note: To un-enforce or remove a policy from an endpoint, delete the enforcement. For more information, see Remove an enforcement.

To view the status of an enforcement on the Enforcements tab of the Policy Configurations page, click the arrow next to an enforcement to expand the status information. You can also view the status information in the Summary section of the enforcement details page. For more information about each enforcement state, see Enforcements.

View enforcements

Required access rights

To view enforcements, you must have one of the following access rights:

  • The Unrestricted Management Rights permission.

  • Access to the computer groups targeted by the enforcement.

    Note: You must have access to the exact computer group targeted by the enforcement to view the enforcement. Access to another computer group that includes the endpoints from the targeted computer group does not provide viewing access. For example, if you have access to the All Windows computer group, but not the All Windows 10 computer group, you cannot view enforcements that target only the All Windows 10 computer group.

For more information, see Assign computer groups.

View the enforcement

  • For a remediation policy: From the Main menu, go to Modules > Enforce > Device Actions > Enforcements.

  • For all other policy types: From the Main menu, go to Modules > Enforce > Policy Configurations > Enforcements.

Expand the details for the enforcement to view the application status.

Figure 1. Enforcement status for a policy
Example screen capture from Enforce that shows the Enforcements status for a policy

Click the name of the enforcement to open the enforcement details page.

Note: Enforcements for User Administrative Template policies show the enforcement status per user, not per endpoint.
Example screen capture from Enforce that shows the enforcement status for a User Administrative Policy

Filter results

In the Endpoints section on the enforcement details page, you can filter results by items such as computer name, operating system, operators (contains or does not contain), and plain text. You can also add additional rows and groupings to the filter.

Figure 2. Endpoints section of the Enforcement Details page
Example screen capture from Enforce that shows the Endpoints section of the Enforcement Details page

For more information about filtering and merging question results, see the Analyzing question results in Interact.

View endpoint details

You can use Enforce with Reporting to view enhanced endpoint details in enforcements. In the Endpoints section on the enforcement details page, click Endpoint Details endpoint.

Figure 3. Endpoint Details slideout
Example screen capture from Enforce that shows the Endpoint Details slideout for an endpoint
Click View Details to open the endpoint details in Reporting. For more information, see View endpoint details.
Example screen capture from Reporting that shows the endpoint details page

Remove an enforcement

From the list of enforcements, select one or more enforcements and click Delete trash_button. You can also click an individual enforcement and then click Delete trash_button.

When you remove an enforcement for a remediation policy, Enforce unenforces the policy on targeted endpoints that are online within an hour, and the Enforce - Diagnostic - Applied Machine Policies sensor no longer reports the policy as enforced on them. If another enforcement of the same policy remains, Enforce does not unenforce the policy. Removing the enforcement does not revert changes that the remediation already made on the endpoint.

Note: When you remove an enforcement for a Security Settings policy, the settings from the policy remain on the endpoint. When this scenario occurs, the following warning-level message (0) is logged in the endpoint's extensions log: Unenforced Security Policy - settings remain on endpoint.

For more information about this behavior, see the section "Persistence in security settings" in Microsoft documentation: Applying security settings.