Remove Custom Tags from Endpoints
Use these procedures to remove custom tags from your endpoints. There are three methods:
Removing a Single Tag from One or More Specific Endpoints
This procedure uses the Custom Tagging – Remove Tags package, which requires your targeting uses the Custom Tag sensor, as shown in the procedure.
Note: The package to remove a Custom Tag is sensor sourced rather than parameterized, so your targeting question to deploy the package Custom Tagging - Remove Tags must return a value from the sensor, Custom Tags. The value returned from the Custom Tags sensor is what is passed to the Custom Tagging - Remove Tags package.
-
Identify the name of the tag you want to remove and the computer or set of computers that you want to remove the tag from. Ask a question similar to:
Get Computer Name and Custom Tags from all machines
Use a filter on the right-hand side of the question to target a specific computer or set of computers. For example:
Get Computer Name and Custom Tags from all machines with Operating System contains Windows 10
Get Computer Name and Custom Tags from all machines with Computer Name contains xyz
-
After you identify the specific tag to remove and the endpoints to remove it from, ask a question similar to the following to get a list of that specific tag from the endpoints. For example:
Get Custom Tags equals <tag name> from all machines with Operating System contains Windows 10
Get Custom Tags equals <tag name> from all machines with Operating System contains Windows 10
Get Custom Tags equals <tag name> from all machines with Operating System contains Windows 10
This returns a list of tags on the targeted endpoints.
-
Select the tag you want to remove.
-
Click Deploy Action.
-
In the Deployment Action field, type Custom Tagging – Remove Tags. This package works only for Windows endpoints. If you are only removing the tag from non-Windows endpoints, select Custom Tagging – Remove Tags (Non-Windows).
-
Click Show Preview to Continue.
-
If the preview looks correct, Click Deploy Action and Confirm.
-
When the deployment is complete, you can verify that the tag was removed by reissuing the Custom Tag question. For example:
Get Custom Tags?maxAge=60 from all machines with Operating System contains Windows 10
Get Custom Tags?maxAge=60 from all machines with Computer Name contains xyz
Using maxAge=60 allows you to catch configuration changes that are made sooner (60 seconds), rather than the default of 600 seconds. If you are targeting a large number of endpoints, we don’t recommend using maxAge=60, as this would force all endpoints being targeted by the question to re-evaluate the Custom Tags sensor.
If you are using the question builder, set maxAge to 1 minute. The question syntax will show this as 60 seconds.
Remove a Single Tag from All Computers
This procedure uses the Custom Tagging – Remove Tags package, which requires your targeting question uses the Custom Tag sensor, as shown in the procedure.
The package to remove a Custom Tag is sensor sourced rather than parameterized, so your targeting question to deploy the package Custom Tagging - Remove Tags must return a value from the sensor, Custom Tags. The value returned from the Custom Tags sensor is what is passed to the Custom Tagging - Remove Tags package.
-
Identify the name of the tag you want to remove. Ask the following question to list all tags.
Get Custom Tags from all machines
-
From the list of custom tags, select the tag to remove. Use the filter feature to narrow the list.
-
With the tag selected, Click Deploy Action.
-
In the Deployment Action field, type Custom Tagging – Remove Tags. This package works only for Windows endpoints. If you are only removing the tag from non-Windows endpoints, select Custom Tagging – Remove Tags (Non-Windows).
-
Click Show Preview to Continue.
-
If the preview looks correct, Click Deploy Action and Confirm.
-
When the deployment is complete, you can verify that the tag was removed by reissuing the Custom Tag sensor question.
Get Custom Tags?maxAge=60 from all machines
Using maxAge=60 allows you to catch configuration changes that are made sooner (60 seconds), rather than the default of 600 seconds. If you are targeting a large number of endpoints, we don’t recommend using maxAge=60, as this would force all endpoints being targeted by the question to re-evaluate the Custom Tags sensor.
If you are using the question builder, set maxAge to 1 minute. The question syntax will show this as 60 seconds.
Remove All Custom Tags from One or More Endpoints Using the Registry Delete Key Package
Only use this procedure to remove ALL custom tags from one or more endpoints. In contrast to the previous procedures, this procedure uses the Registry Delete Key package.
-
To complete this procedure, you need to know the computer or set of computers from which you want to remove all tags. Ask a question similar to the following.
Get Computer Name and Custom Tags from all machines
Use a filter on the right-hand side of the question to target a specific computer or set of computers. For example:
Get Computer Name and Custom Tags from all machines with Operating System contains Windows 10
Get Computer Name and Custom Tags from all machines with Computer Name contains xyz
-
After you identify the tag and computers, ask a question similar to the following to get a list of endpoints and the associated custom tags.
Get Custom Tags from all machines with Computer Name contains xyz
-
Select one or more computers from the list and click Deploy Action.
-
In the Deployment Action field, type Registry – Delete Key.
-
Select the appropriate OS Architecture. If you don’t know, select Both.
-
Type the following for the Registry Key Name for the custom tags.
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Tanium\Tanium Client\Sensor Data\Tags
-
Click Show Preview to Continue.
-
If the preview looks correct, Click Deploy Action and Confirm.
-
When the deployment is complete, you can verify that all custom tags were removed.
Get Custom Tags?maxAge=60 from all machines with Computer Name contains xyz
Using maxAge=60 allows you to catch configuration changes that are made sooner (60 seconds), rather than the default of 600 seconds. If you are targeting a large number of endpoints, we don’t recommend using maxAge=60, as this would force all endpoints being targeted by the question to re-evaluate the Custom Tags sensor.
If you are using the question builder, set maxAge to 1 minute. The question syntax will show this as 60 seconds.