Repository navigation
Command Stop TaskProcessing
Stops the processing of the script when called within the Start-DscRunner function.
The Stop-TaskProcessing function is designed to halt the execution of a script. It ensures that it is only called within the context of the Start-DscRunner function by checking the call stack. If called outside of this context, it will throw an error.
It takes no parameters. It is intended to be called from a resource's postExecutionScript, which requires PipelineRunnerSettings.AllowExecutionScripts to be enabled; the postCondition-only stopProcessing() accessor is the equivalent that needs no opt-in.
postExecutionScript: if ($Project_Ensure -eq 'Absent') { Stop-TaskProcessing }
Skips every remaining resource in the current configuration file when the project is being
torn down, since everything else in the file cascades under it.Dsc.PipelineRunner 1.1.0 — generated from
the repository on 2026-09-17.
Conceptual pages are authored in WikiSource/; command pages are generated from
comment-based help. Edit those, not the wiki: the wiki is overwritten on every release.