DSCResources/WaitForAnyNode/WaitForAnyNode.schema.psm1
configuration WaitForAnyNode { param ( [Parameter()] [hashtable[]] $Items ) <# NodeName = [string[]] ResourceName = [string] [DependsOn = [string[]]] [PsDscRunAsCredential = [PSCredential]] [RetryCount = [UInt32]] [RetryIntervalSec = [UInt64]] [ThrottleLimit = [UInt32]] #> foreach ($item in $items) { $executionName = $item.ResourceName (Get-DscSplattedResource -ResourceName WaitForAny -ExecutionName $executionName -Properties $item -NoInvoke).Invoke($item) } } |