MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Rundeck Assignments 2 – Windows


Rundeck Student Assignments (Windows Local Node)

๐Ÿ“ Setup Prerequisites:

  • Ensure PowerShell is available (default on Windows Server 2019)
  • The rundeck server itself is also the execution node
  • Students must create a project first (e.g., windows-lab)

๐ŸŽ“ Assignment List


Assignment 1: Hello World in PowerShell

Objective: Run a basic PowerShell script as a Rundeck job.

  • Job Name: hello-world
  • Step Type: Script โ†’ PowerShell
  • Command: Write-Output "Hello from Rundeck on Windows Server!"
  • Expected Outcome: Job log displays the message.
  • Learning Outcome: Understand basic job creation and PowerShell execution.

Assignment 2: List Running Processes

Objective: Use Rundeck to list all currently running processes.

  • Job Name: list-processes
  • Script Step: Get-Process | Sort-Object CPU -Descending | Select-Object -First 10
  • Expected Outcome: Displays the top 10 CPU-consuming processes in the job log.
  • Bonus: Add a second step to export to a file in C:\rundeck\logs.

Assignment 3: Create a User-Supplied Directory

Objective: Use job options to accept a directory name and create it.

  • Job Name: create-directory
  • Job Option:
    • Name: foldername
    • Description: “Name of the folder to create in C:\rundeck”
  • Script Step: New-Item -Path "C:\rundeck\${option.foldername}" -ItemType Directory
  • Expected Outcome: Creates a folder with the given name.
  • Learning Outcome: Understand job options and user input.

Assignment 4: Disk Space Report

Objective: Generate a disk usage report for drive C:\.

  • Job Name: disk-space-report
  • Script Step: Get-PSDrive C | Format-List > C:\rundeck\disk_report.txt Get-Content C:\rundeck\disk_report.txt
  • Expected Outcome: Job log shows disk usage and a file is saved.

Assignment 5: System Health Check Workflow

Objective: Run a multi-step job that checks system health.

  • Job Name: system-health-check
  • Workflow Steps:
    1. Uptime: (Get-CimInstance Win32_OperatingSystem).LastBootUpTime
    2. CPU Load (5 seconds sample): Get-Counter '\Processor(_Total)\% Processor Time' -SampleInterval 5 -MaxSamples 1
    3. Memory Usage: Get-CimInstance Win32_OperatingSystem | Select-Object FreePhysicalMemory, TotalVisibleMemorySize
    4. Active Sessions: quser
  • Expected Outcome: Combined output of system diagnostics in job logs.

๐Ÿ“ Optional Directory Structure for Files:

You may suggest students save outputs to:

C:\rundeck\
โ”œโ”€โ”€ logs\
โ”‚   โ”œโ”€โ”€ disk_report.txt
โ”‚   โ”œโ”€โ”€ process_list.txt
โ”œโ”€โ”€ backups\
Code language: CSS (css)

๐Ÿ“š Learning Objectives for Students

SkillLearned Through
Job creationHello World
PowerShell scriptingAll jobs
Job optionsAssignment 3
Logging/outputAssignment 2 & 4
WorkflowsAssignment 5

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
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.

Related Posts

Senior Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Senior Windows Administrator is accountable for the reliability, security, and operational excellence of the organizationโ€™s Windows-based infrastructure, including core identity services, server platforms, endpoint management integrations, and Windows-adjacent enterprise services. This role ensures that Windows environments are standardized, patched, monitored, recoverable, and compliantโ€”while progressively automating operations to reduce toil and improve service quality.

Read More

Lead Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Lead Windows Administrator is the senior hands-on owner of Windows-based enterprise infrastructure, responsible for the reliability, security, and operational excellence of core Microsoft platforms (e.g., Windows Server, Active Directory, identity integrations, patching, endpoint/device management, and automation). This role exists in software companies and IT organizations because Windows and Microsoft identity services remain foundational for workforce access, enterprise applications, and hybrid infrastructureโ€”even as application workloads move to cloud-native platforms.

Read More

Junior Windows Administrator: Role Blueprint, Responsibilities, Skills, KPIs, and Career Path

The Junior Windows Administrator supports the stability, security, and day-to-day operation of Windows-based infrastructure across an enterprise IT environment. The role focuses on executing standard operational tasks (user and server administration, patching, monitoring, and ticket resolution) under established processes, with increasing ownership of routine changes and small improvements over time.

Read More

Top 10 Windows Management Tools: Features, Pros, Cons & Comparison

Introduction Windows Management Tools are software solutions designed to help IT teams centrally manage, secure, monitor, configure, and maintain Windows-based systems across an organization. These tools simplify…

Read More

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…

Read More

How to add Windows Node in Rundeck?

Rundeck allows users to execute jobs to remote Windows nodes to manage and automate tasks using Rundeck workflows. This article shows how to add a Windows node…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x