Winrm-ps-script #5712
-
Hello I tried using env but not working. Any suggestion will be appreciated. Thanks . if you need more information about this query please comment on this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The env sets environment variables, so your powershell script would need to read the values as environment variables rather than arguments. Parameters to the script should be specified in the action's parameters: see https://docs.stackstorm.com/actions.html#update-argument-parsing-in-the-script. Although the example is for a bash script, the same method should be able to use to send parameters for winrm-ps-script as well. |
Beta Was this translation helpful? Give feedback.
The env sets environment variables, so your powershell script would need to read the values as environment variables rather than arguments.
Parameters to the script should be specified in the action's parameters: see https://docs.stackstorm.com/actions.html#update-argument-parsing-in-the-script. Although the example is for a bash script, the same method should be able to use to send parameters for winrm-ps-script as well.