running script file from windows node

56 views
Skip to first unread message

Kobi Dikrman

unread,
Aug 7, 2023, 8:51:48 AM8/7/23
to rundeck-discuss
hi.
my rundeck instance installed on linux machine.
i need to run script file from a windows machine, i configured the windows machine with winrm - it's works fine.
when i'm trying to run the job that will run a script file i'm getting the attached error
rundeckerror.PNG
beside script file everything works ok - inline script / command.

here you can see the configuration.
rundeckscript.PNG

what i'm missing ?

rac...@rundeck.com

unread,
Aug 7, 2023, 9:32:23 AM8/7/23
to rundeck-discuss
Hello!

Assuming you have a properly configured Windows node (see this).

To send scripts to Windows servers from the Linux rundeck server, you must first give a linux path containing the .bat script file, and then the script must be sent to the Windows remote node.

You can also write an inline script, which should be sent to the remote node.

In both cases, make sure to set the interpreter correctly (cmd.exe) and the file extension (.bat), those parameters are available by clicking on the "Advanced" link.

Essentially, the scripts are saved on the rundeck server and then distributed to Windows remote nodes.

If you wish to run a remote Windows script, you can use the command step calling the script stored on the Windows remote node.

Regards.

Kobi Dikrman

unread,
Aug 7, 2023, 11:52:57 AM8/7/23
to rundeck-discuss
the bat file exist only on the windows machine - so i cannot give a linux path that contains the bat file..

rac...@rundeck.com

unread,
Aug 7, 2023, 12:18:19 PM8/7/23
to rundeck-discuss
In that case just follow the latest part of my post:

If you wish to run a remote Windows script, you can use the command step calling the script stored on the Windows remote node.

Hope it helps!

Kobi Dikrman

unread,
Aug 8, 2023, 4:38:14 AM8/8/23
to rundeck-discuss
yeah
that's what i thought..

I'll give it a try
Reply all
Reply to author
Forward
0 new messages