PowershellExecuteItems
Introduction
Section titled “Introduction”Executes a powershell-script for every item. A failing script will fail the valve.
Note: Script and arguments does not need to be escaped or surrounded with quotes. Only json-escaping (\ or "} of the configuration is needed.
Configuration
Section titled “Configuration”| Name | Description | Default value | Mandatory | Expanded |
|---|---|---|---|---|
| executable | Name and locations of the Powershell executable. | | ||
| script | Name of the script to be executed | N/A | ||
| arguments | A list of arguments to the script. | empty list | ||
| directory | Working directory from where the command is executed. Not set means current directory. | null | ||
| timeout | Timeout for the execution (in seconds) | 30 |
{ "name" : "PowershellExecute", "config" : { "executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "script":"C:\\my scripts\\my_script1.ps", "parameters" : ["-Arg1","${item.name}"] }}Note that parameter names are case-sensitive.