Had this exact error as well. Each deployment type was using a registry and a directory detection clause. I was reusing the same directory detection clause object and creating new registry clauses for each. Reusing the directory clause object was causing the issue. As soon as i removed\created a second directory clause object it worked perfectly.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Powershell - How to create multiple Deployment Types
in scripting
Posted
Had this exact error as well. Each deployment type was using a registry and a directory detection clause. I was reusing the same directory detection clause object and creating new registry clauses for each. Reusing the directory clause object was causing the issue. As soon as i removed\created a second directory clause object it worked perfectly.