Add device to collection using task sequence

sccm t 0 Reputation points
2025-02-20T20:43:19.3766667+00:00

Hi All,

How to add a Host in Existing device collection in Task Sequence in SCCM.

Thank you.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
1,045 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 48,356 Reputation points Microsoft Vendor
    2025-02-21T01:55:12.56+00:00

    Hi, @sccm t

    Thank you for posting in Microsoft Q&A forum.

    We can add computer to collection during OSD via the ConfigMgr AdminService:

    https://www.deploymentresearch.com/add-computer-to-collection-during-osd-via-the-configmgr-adminservice/

    After the way you tag questions on Q&A is updated, for any "Microsoft Configuration Manager" related problem, you can tag it with "Microsoft Intune", and then "Microsoft Configuration Manager" as the child tag.


    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 "Add comment".


  2. MUSTAFA FARUK TANGAL 0 Reputation points
    2025-02-21T19:58:07.2766667+00:00

    To automatically add new devices to an SCCM collection, follow these steps:

    Create a Query-Based Collection Open the SCCM Console and navigate to Assets and Compliance > Device Collections. Create a new Device Collection or modify an existing one.

    Write a SQL Query for the Collection In the collection properties, go to the Membership Rules tab. Click on Add Rule > Query Rule and define a query that dynamically includes devices based on specific attributes, such as Active Directory OU, device name, or hardware inventory properties. Example query:

    pgsql

    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 "%Windows 10%"

    Modify the query as needed for your environment.

    Enable Incremental Updates In the Membership Rules tab, check the box for Use incremental updates for this collection. This ensures that new devices are automatically added to the collection without waiting for a full update cycle.

    Apply and Monitor Save the changes and monitor the collection to verify that newly added devices appear as expected..

     

    0 comments No comments

  3. MUSTAFA FARUK TANGAL 0 Reputation points
    2025-02-21T19:58:50.0366667+00:00

    ..........

    0 comments No comments

Your answer

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