Hereโs a step-by-step guide to add and use a Windows node in Rundeck installed on a Linux server, using WinRM (Windows Remote Management), which is the most common way to connect from Linux to Windows.
๐งฉ Prerequisites
| Requirement | Notes |
|---|---|
| โ Windows machine | Windows 10/11 or Server with WinRM enabled |
| โ Rundeck installed on Linux | Any recent version of Rundeck (Community is fine) |
| โ Network reachability | Linux (Rundeck) must reach the Windows node on port 5985 (HTTP) or 5986 (HTTPS) |
| โ PowerShell enabled on Windows | For remote execution |
๐ง Step 1: Enable WinRM on Windows Node
Open PowerShell as Administrator on the Windows machine and run:
winrm quickconfig
If prompted, choose y to make the changes.
Optional (Allow unencrypted + Basic Auth):
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
Code language: PHP (php)
โ ๏ธ This is for testing. For production, use HTTPS with a certificate.
๐ฅ Step 2: Create Windows Node Entry in Rundeck
Go to:
Rundeck โ Project Settings โ Edit Nodes โ Add a Node (Manually)
Or edit your resources.yaml/resources.xml (depending on project config).
Sample YAML Entry (resources.yaml):
- nodename: win-node01
hostname: 192.168.1.50
osFamily: windows
osName: Windows
description: Windows Node for Deployment
tags: windows
username: Administrator
winrm-auth-type: basic
winrm-protocol: http
winrm-port: 5985
winrm-ssl: false
winrm-certificate-check: false
winrm-password-storage-path: keys/project/windows-password
Code language: JavaScript (javascript)
Store the password in Rundeck Key Storage:
Go to:
Rundeck โ Key Storage โ Add Key โ Password โ Path: keys/project/windows-password
โ๏ธ Step 3: Configure Project for WinRM Plugin
Make sure WinRM is supported in your project:
- Go to Project Settings โ Edit Configuration
- Add or verify:
project.node.executor.default=overthere-winrm
project.remote.file-copy.default=overthere-winrm
Code language: PHP (php)
This ensures file copy and command execution use WinRM.
๐ฆ Step 4: Install WinRM Plugin (if missing)
If WinRM plugin isn’t preinstalled, download it:
Steps:
- Download the
.jar - Place it in
/var/lib/rundeck/libext/ - Restart Rundeck:
sudo systemctl restart rundeckd
โ Step 5: Test Node Connectivity
- Go to Nodes โ win-node01 โ Test Connection
- If it fails, check:
- Network access (ping/port 5985)
- Credentials (Administrator or other user with permissions)
- WinRM config on Windows
๐ Step 6: Run a Command on Windows Node
- Go to Commands
- Select Node:
win-node01 - Command:
Get-Process
Output should appear in the Rundeck UI.
โ Troubleshooting Tips
| Problem | Fix |
|---|---|
| WinRM connection refused | Make sure port 5985 is open and WinRM is configured |
| Authentication failure | Ensure username/password are correct; check storage path |
| Plugin not found | Check if the WinRM plugin JAR is in libext/ and restart Rundeck |
| Firewall issues | Open WinRM ports on the Windows Firewall |
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services โ all in one place.
Explore Hospitals