[英]How to run the Powershell File which Located in remoted Server using rundeck
I Need to Execute the Power shell file which located in the remote Machine using rundeck. 我需要使用rundeck执行位于远程计算机中的Power shell文件。
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 . 此设置在rundeck服务器而不是远程主机服务器AS123中搜索Powershell文件路径。
Can anyone share the steps How to call the powershell which is hosted in remote Server and Execute the same on the remote host. 任何人都可以共享步骤如何调用远程服务器中托管的Powershell并在远程主机上执行相同的步骤。
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). 使用通过cygwin在服务器上本地运行脚本时使用的确切命令行(我猜想)。 ie 即
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. 使用“脚本文件或URL”时,它应该是rundeck可以访问的路径,因为它在rundeck服务器上本地运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.