Hello,
We had similar situation and fixed it by adding a OTWinRMFileCopier.java which does a sftp of the file over to the windows server and executes remotely. Works great.
Brief steps:
(I will write a more details docs around setting this up and send that over later tomorrow).
0. Setup FTP on the Linux Rundeck server ( vsftpd with some additional configuration
http://www.firewall.cx/linux-knowledgebase-tutorials/system-and-network-services/875-linux-vsftpd-setup-configure.html)
( had to create a ftp user rdftp and password and externalized it in framework.properties. Also make sure that ftp user can access the .tmp files from under RDECK_BASE/var/tmp )
# Username/password used for FTP
framework.rdftp.username = rdftp
framework.rdftp.password = **REDACTED**
1. Added the OTWinRMFileCopier.java to the plugin ( Attached )
2. Added the sftp cmd ( like below)
341 protected CmdLine buildFtpScript(String command, String destinationPath , String ftpServer, String ftpUsername, String ftpPassword) {
342 return buildCmdLineRaw(("cmd /c echo open " + ftpServer + ">ftpscript&&"
343 + "echo " + ftpUsername + ">>ftpscript&&"
344 + "echo " + ftpPassword + ">>ftpscript&&"
345 + "echo binary>>ftpscript&&"
346 + "echo cd tmp>>ftpscript&&"
347 + "echo get " + command + " " + destinationPath + ">>ftpscript&&"
348 + "echo quit>>ftpscript&&"
349 + "sftp -s:ftpscript&&del ftpscript").split(" "));
350 }
3. Compile and configure the SCP option in the Project configuration
4. Inline scripts work.
Cheers, Dharmendra