rundeck-plugins / rundeck-winrm-plugin

UNMAINTAINED - Rundeck WinRM Node Executor plugin
Other
56 stars 28 forks source link

Option to execute as powershell #35

Open pecigonzalo opened 9 years ago

pecigonzalo commented 9 years ago

WinRM plugin default to execute as batch, is there a way to make it default to powershell?

ddzed15 commented 9 years ago

Hello, Not sure how to make that default, but If you are running a remote script via command step, try this: Powershell.exe -executionpolicy bypass -File /path/to/file.ps1

voila_capture 2015-09-28_22 08 37

If inline, use the "Invocation String" and "File Extension"

voila_capture 2015-09-28_22 14 42

Hope this helps. Cheers, Dharmendra

pecigonzalo commented 9 years ago

Dharmendra, im currently using that as a workaround, but it would be better to have a "better" way of doing it.

daBONDi commented 8 years ago

Still the same, needs realy a better solution for that

Looks like i realy need to buy System Center Service Automation Manager for that :-(