Share via

Device Collection based on creation date

Ranjithkumar Duraisamy 131 Reputation points
2022-06-01T18:50:48.333+00:00

Hello, I'm trying to create device collection which devices are recently added into SCCM through new build/OSD or discovery, sitewide client push etc.

Idea behind that collection is based on device creation date. Thinking of scheduling an ADR to deploy patches to this collection, so the newly built devices will get the updates installed as soon as they born.

Is this sounds appropriate or do we have better option?

Below is the query.

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
WHERE (SMS_R_System.OperatingSystemNameandVersion LIKE "Microsoft Windows NT Server%"
OR SMS_R_System.OperatingSystemNameandVersion LIKE "Microsoft Windows NT Advanced Server%")
AND DATEPART(DD, SMS_R_System.CreationDate) >= 31

Microsoft Security | Intune | Configuration Manager | Updates
Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
    2022-06-02T01:50:35.097+00:00

    Hi, @RanjithkumarDuraisamy-6350

    Thank you for posting in Microsoft Q&A forum.

    It might not be a good idea, we usually create ADRs for the collections that contain the same OS version, if we have already configured ADRs for the specified OS version,
    once the device joined in SCCM and added to the existing collection, the software updates that deployed to the collection will applied to the new device.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. Garth 5,806 Reputation points
    2022-06-01T21:26:47.913+00:00

    Why not apply su during you ts? Computers will apply any existing su deployment shortly after they join cm, so....

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.