Following Slav's answer above, here is a simpler solution for Jenkins (*nix) to remote (windows):
- Install an SSH server on your remote windows (MobaSSH home edition worked well for me)
- Make sure your Jenkins user, on your Jenkins machine, has the required certification to open an SSH connection with your remote (you can simply open a terminal and ssh to your remote once, then accept the certification. Make sure it is saved for the Jenkins user).
- You can now add an execute shell build phase in your Jenkins job which can SSH to your remote windows machine.
Notes :
- The established connection might require some additional work - you might have to set windows environment variables or map network drivers in order for your executed commands or batch files to work properly on your windows machines.
- If you wish to run GUI related operations this solution might not be relevant (Following my work on running automation tests which require GUI manipulation).
- Using Jenkins SSH plugin is an issue, as seen here.