DSC WaitForSome Resource

Applies To: Windows PowerShell 5.0 and later

The WaitForAny Desired State Configuration (DSC) resource can be used within a node block in a DSC configuration to specify dependencies on configurations on other nodes.

This resource succeeds if if the resource specified by the ResourceName property is in the desired state on a minimum number of nodes (specified by NodeCount) defined by the NodeName property.


WaitForAll [string] #ResourceName
    ResourceName = [string]
    NodeName = [string]
    NodeCount = [Uint32]
    [ RetryIntervalSec = [Uint64] ]
    [ RetryCount = [Uint32] ] 
    [ ThrottleLimit = [Uint32]]
    [ DependsOn = [string[]] ]


Property Description
ResourceName The resource name to depend on.
NodeName The target nodes of the resource to depend on.
NodeCount The minimum number of nodes that must be in the desired state for this resource to succeed.
RetryIntervalSec The number of seconds before retrying. Minimum is 1.
RetryCount The maximum number of times to retry.
ThrottleLimit Number of machines to connect simultaneously. Default is new-cimsession default.
DependsOn Indicates that the configuration of another resource must run before this resource is configured. For example, if the ID of the resource configuration script block that you want to run first is ResourceName and its type is ResourceType, the syntax for using this property is DependsOn = "[ResourceType]ResourceName".


For an example of how to use this resource, see Specifying cross-node dependencies