I am attempting to create a USER COLLECTION based on USER WQL. I am attempting to identify users at specific BOUNDARIES [subnets] using user device affinity. I am able to create the SQL for this as follows:
SELECT COLL.ResourceID, COLL.Name, VIP.IP_Addresses0,VSYS.User_
FROM [CM_C01].[dbo].[v_CM_RES_COLL_
ORDER BY Name, User_Name0
I am able to get very similar results in WQL as follows with a limiting DEVICE collection as follows:
select UMR.ResourceId, UMR.UniqueUserName from SMS_R_System AS SR inner join SMS_UserMachineRelationship AS UMR on UMR.ResourceID = SR.ResourceId where UMR.Types = 1 AND SR.LastLogonUserName IS NOT NULL.
However this is WQL cannot be used in a USER COLLECTION. Is there a way to create a USER COLLECTION to get what I want?
George