Winrm-ps-script #5712
Answered
by
amanda11
mohit-singhal14
asked this question in
Documentation
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 |
Answered by
amanda11
Sep 26, 2022
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. |
0 replies
Answer selected by
mohit-singhal14
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.