I have using below script for Powershell workflow.
Get-ChildItem c:\windows -include *.avi,*.m4a,*.m4p,*.m4v,*.mobi,*.mov,*.mp3,*.mp4,*.mpeg,*.mpg,*.VOB,*.wav,*.wma,*.wmv -recurse |
Problem number one – positional parameters aren't supported in workflows so you need to use -Path on get-childitem and property on select-object
This will work
The workflow will suspend. use Resume-Job to restart the workflow. Resume-Job will report the job as still suspended but it has resume – use get-job to verify.
I recommend you read my series on workflows on the Scripting Guy blog.
You must be logged in to reply to this topic.