Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Guide to add and use a Windows node in Rundeck installed on a Linux server

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

RequirementNotes
✅ Windows machineWindows 10/11 or Server with WinRM enabled
✅ Rundeck installed on LinuxAny recent version of Rundeck (Community is fine)
✅ Network reachabilityLinux (Rundeck) must reach the Windows node on port 5985 (HTTP) or 5986 (HTTPS)
✅ PowerShell enabled on WindowsFor 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:

  1. Go to Project Settings → Edit Configuration
  2. 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:

  1. Download the .jar
  2. Place it in /var/lib/rundeck/libext/
  3. 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

  1. Go to Commands
  2. Select Node: win-node01
  3. Command:
Get-Process

Output should appear in the Rundeck UI.


✅ Troubleshooting Tips

ProblemFix
WinRM connection refusedMake sure port 5985 is open and WinRM is configured
Authentication failureEnsure username/password are correct; check storage path
Plugin not foundCheck if the WinRM plugin JAR is in libext/ and restart Rundeck
Firewall issuesOpen WinRM ports on the Windows Firewall

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x