United Kingdom Endpoint Management User Group

 View Only

Locate a Target's guid so that you can then update its membership 

Jan 17, 2014 06:14 PM

Task Server provides a task to update specific filter memberships; however, it doesn't provide one to update specifc target memberships.

As policies are assigned to targets in 7.x (can be a combination of filters, lists and groups), it is far easier to update a target than to update the filters and groups that are associated with them.

 

The following process allows you to correctly identify the target you want to update outside of the resource membership update schedules:

1.    Load policy with the Apply To View set to Targets.
2.    Run the following query in order to obtain the Guid of that resource target:

--/ Resource Targets
SELECT t.Guid AS TargetGuid,i.Name AS Target,i.Description FROM Item i
JOIN ResourceTarget t ON i.Guid = t.Guid
--WHERE i.Name LIKE '%(portal internal target)' --only portal targets
ORDER BY i.Name ASC

3.    Run the following query in order to obtain your required computer list (If duplicate names were returned in the first query, you will need to try them all in order to obtain the results from the policy target that you are looking at):

--/ Targeted computers
SELECT i.Name AS Computer,i.[Last Logon user]
FROM Inv_AeX_AC_Identification i
JOIN ResourceTargetMembershipCache c ON i._ResourceGuid = c.ResourceGuid
WHERE c.ResourceTargetGuid = 'target guid goes here'


4.  Utilise the following query in a "Run SQL Query on Server" task
--/ Update resource target
exec spResourceTargetDeltaUpdate @resourceTargetGuid='target guid goes here', @flush=1

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Aug 30, 2017 02:58 PM

Related Article that maybe of interest
ServiceDesk - Software Request Process - Reports
https://www.symantec.com/connect/articles/servicedesk-software-request-process-reports
- Delivery Policies for Software Release
- Filters for Target
- Releases for Software Product

Feb 02, 2015 09:57 AM

Thanks Scott is there anything in similar manner for fliters? (I know there is task to update filters) but I am running a query to find certain filters and update those filters, so looking for a sql or script to update filter. 

Feb 02, 2015 04:48 AM

Are there any plans to integrate this kind of function into the ASDK some time in the future?

There seems to be quite many who would like to see some functions around "targets" within the ASDK:

https://www-secure.symantec.com/connect/idea/update-target-demand

 

Related Entries and Links

No Related Resource entered.