xADDomainController side effect

    xADDomainController SecondDC 
        DomainName = $Node.DomainName 
        DomainAdministratorCredential = $domainCred 
        SafemodeAdministratorPassword = $safemodeAdministratorCred 

Works the first time but fails if run again, my ConfigurationMode = ‘ApplyOnly’
and I see no Ensure = “Present”. Is this by design?

I’m not entirely sure what the question is.

Not all resources have an “Ensure” property - that’s by design. However, the configuration shouldn’t fail if run a second time - but in order to help troubleshoot it, we’d need more diagnostic information.

I believe it would be better to post your problem on Github.


You’ll get better visibility with the users and developers of the resource plus a bugfix if necessary can be linked to your Github issue for tracking.