Don't use WinRM. Use a WMI directly or use a web service. Or, potentially better yet, don't rely on static membership.
Adding Devices to a collection in SCCM using Task Sequence
Garima Das
1,061
Reputation points
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.
2 answers
Sort by: Most helpful
-
Jason Sandys 31,391 Reputation points Microsoft Employee
2021-03-31T16:39:38.13+00:00 -
Rahul Jindal [MVP] 10,681 Reputation points MVP
2021-03-31T21:55:33.137+00:00 What is your end goal here?