Reputation: 1053
I Need to Execute the Power shell file which located in the remote Machine using rundeck.
So far I have done this:
This setup is searching for the Powershell file path in the rundeck server rather than the remote host server AS123.
Can anyone share the steps How to call the powershell which is hosted in remote Server and Execute the same on the remote host.
Upvotes: 1
Views: 1048
Reputation: 76
use one of the following instead. Personally I prefer using the inline script cause it more flexible.
use the exact command line you use when running the script locally on your server via cygwin (I presume). i.e
powershell.exe 'd:\scripts\test\fun-test.ps1' -path Testing
Make sure to select dispatch to nodes and filter your relevant server.
When using 'script file or URL' it should be a path rundeck can access cause it runs locally on the rundeck server.
Upvotes: 1