DSCResources/AddsWaitForDomains/AddsWaitForDomains.schema.psm1
configuration AddsWaitForDomains { param ( [Parameter()] [hashtable[]] $Domains ) Import-DscResource -ModuleName PSDesiredStateConfiguration Import-DscResource -ModuleName ActiveDirectoryDsc foreach ($domain in $Domains) { $executionName = $domain.DomainName (Get-DscSplattedResource -ResourceName WaitForADDomain -ExecutionName $executionName -Properties $domain -NoInvoke).Invoke($domain) } } |