Closed AndrzejWojtowicz closed 3 years ago
I have found a workaround - re-instantiate detection clause objects and then it works. This is still not a permanent solution though.
Thanks @AndrzejWojtowicz for taking the time to share this with the Configuration Manager documentation team. I’m sorry that you’re having problems, and I want to make sure it gets to the right people that can help. There are a couple of options available to provide the best level of support for this:
I have existing
$SCCMDetectionChecks
ArrayList where I am storing all detection clauses.Then I am running
Add-CMScriptDeploymentType -ApplicationName $SCCMApplicationName -AddDetectionClause $SCCMDetectionChecks
and it works fine. However while trying to add second deployment type to existing application SCCM i get the below error:
I have found some info on the internet that reusing existing detection clause objects might be causing this but was unable to narrow down the issue or find a workaround.
Any ideas?