Skip to content

Conversation

@lasnoles
Copy link

When I test choria using powershell task in windows, the powershell script wasn't triggered properly. After investigation, the execuator wrapper.exe can only work when you put the ps_shim_path after the powershell command:
the correct way is:
"powershell", "-NoProfile", "-NonInteractive", "-NoLogo", "-ExecutionPolicy", "Bypass", "-File", "PowershellShim.ps1" .ps1
not
"PowershellShim.ps1" "powershell", "-NoProfile", "-NonInteractive", "-NoLogo", "-ExecutionPolicy", "Bypass", "-File", .ps1

When I test choria using powershell task in windows, the powershell script wasn't triggered properly. After investigation, the execuator wrapper.exe can only work when you put the ps_shim_path after the powershell command:
the correct way is: "powershell", "-NoProfile", "-NonInteractive", "-NoLogo", "-ExecutionPolicy", "Bypass", "-File", "<path to>PowershellShim.ps1" <taskscript>.ps1
not
"<path to>PowershellShim.ps1" "powershell", "-NoProfile", "-NonInteractive", "-NoLogo", "-ExecutionPolicy", "Bypass", "-File", <taskscript>.ps1
@ripienaar
Copy link
Member

Thank you, please review the https://github.com/choria-io/mcorpc-ruby-support/blob/main/CONTRIBUTING.md file, we need issues that describe the problem being fixes and specific format commit messages

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants