Adding Devices to a collection in SCCM using Task Sequence

Garima Das 961 Reputation points
2021-03-31T12:33:21.003+00:00

Hi Professionals,

I am trying to create a Custom Task Sequence in SCCM that would use a PS Script. This PS Script is running on the client machine and is adding that client machine to a collection in SCCM Server. But due to firewall restrictions in the environment, this Script, which is using WinRM, is unable to add devices to the collection.

I would like to know if there is any other method using which we can add the device to a collection using SCCM Task Sequence?

Thanks.

Microsoft Configuration Manager
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Jason Sandys 31,151 Reputation points Microsoft Employee
    2021-03-31T16:39:38.13+00:00

    Don't use WinRM. Use a WMI directly or use a web service. Or, potentially better yet, don't rely on static membership.

    1 person found this answer helpful.
    0 comments No comments

  2. Rahul Jindal [MVP] 9,146 Reputation points MVP
    2021-03-31T21:55:33.137+00:00

    What is your end goal here?

    1 person found this answer helpful.
    0 comments No comments