Hello all,
I'm new to SCCM, trained on
SCCM 2018 and have been creating Device Collections based on our Computer Names. I have the following query in the device membership rules - created automatically by going to the Criteria Tab and filling in the Critereon Properties window.
select
SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
from SMS_R_System inner join SMS_G_System_COMPUTER_SYSTEM on SMS_G_System_COMPUTER_SYSTEM.ResourceId = SMS_R_System.ResourceId
where SMS_G_System_COMPUTER_SYSTEM.Name like "Trolley1-%"
This code is supposed to find all devices that start with the name Trolley1- It currently finds 7 - TROLLEY1-LPT16, TROLLEY1-LPT3..... and some others.
However it is missing several. If I go to devices, and type Trolley1- into the filter, I can see 12 devices. Admittedly 3 do not have the client on them as they have not been turned on since we installed SCCM, but at least one other TROLLEY1-LPT9 does not show
up in the collection. But under devices it is found, shows online, client, the correct site code, and active.
I have manually done an Update Memebership of the collection, and refreshed, it still doesn't show.
Where am I going wrong?
Thanks in advance.