Windows Tutorials
Windows automation with Ansible. WinRM setup, PowerShell integration, and Windows modules.
24
Tutorials
5
Beginner
19
Advanced
Ansible Automate Windows Updates — Complete Guide
Deploy Windows patches and manage update schedules with Ansible. Hands-on, tested examples and best practices for Ansible Automate Windows Updates.
Ansible for Windows Administrators — Complete Guide
Complete Ansible guide for Windows sysadmins: WinRM setup, AD management, patching, and GPO. With tested, real-world examples.
Ansible infra.mecm_ops Role Example: Emergency Patch Windows Fleet
Runnable Ansible playbook using infra.mecm_ops roles to emergency patch a Windows fleet via Microsoft Endpoint Configuration Manager on AAP 2.7.
Ansible infra.windows_ops Role Example: Enforce CIS Benchmark Baseline
Runnable Ansible playbook example using the infra.windows_ops collection to audit and remediate CIS benchmark drift on Windows Server fleets.
Ansible microsoft.mecm Module Example: Patch Orchestration Playbook
Runnable Ansible playbook example for the microsoft.mecm collection covering patch orchestration, client actions, and health checks on MECM.
Ansible microsoft.scom Module Example: Alert Routing to EDA
Runnable Ansible playbook example for the microsoft.scom collection, routing System Center Operations Manager alerts into Event-Driven Ansible.
Ansible win_acl Module — Manage Windows File Permissions
Set NTFS file and folder permissions (ACLs) on Windows with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible win_acl Module.
Ansible win_certificate_store Module — Manage Windows Certificate Store
Import, export, and manage certificates in Windows certificate stores. Hands-on, tested examples and best practices for Ansible win_certificate_store Module.
Ansible win_domain Module — Create Windows Active Directory Domain
Promote Windows Server to domain controller and create AD domains. Hands-on, tested examples and best practices for Ansible win_domain Module.
Ansible win_domain_membership Module — Join or Leave Windows Domain
Join Windows hosts to Active Directory domain or remove membership. Tested on real machines with clear, copy-paste examples.
Ansible win_dsc Module — Run PowerShell DSC Resources
Execute PowerShell Desired State Configuration resources with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible win_environment Module — Manage Windows Environment Variables
Set, modify, and remove Windows environment variables with Ansible. Hands-on, tested examples and best practices for Ansible win_environment Module.
Ansible win_feature Module — Manage Windows Server Features
Install and remove Windows Server roles and features with Ansible. Hands-on, tested examples and best practices for Ansible win_feature Module.
Ansible win_firewall_rule Module — Manage Windows Firewall Rules
Create, modify, and delete Windows Defender Firewall rules with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible win_hostname Module — Set Windows Computer Hostname
Change the hostname/computer name on Windows hosts with Ansible. Hands-on, tested examples and best practices for Ansible win_hostname Module.
Ansible win_owner Module — Set Windows File Ownership
Change file and folder ownership on Windows hosts with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible win_package Module — Install Windows Software Packages
Install MSI, EXE, and MSIX packages on Windows hosts with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible win_package Module.
Ansible win_path Module — Manage Windows PATH Variable
Add and remove directories from Windows system or user PATH variable. Tested on real machines with clear, copy-paste examples.
Ansible win_scheduled_task Module — Manage Windows Scheduled Tasks
Create, modify, and delete Windows Task Scheduler tasks with Ansible. Tested on real machines with clear, copy-paste examples.
Ansible win_service Module — Manage Windows Services
Start, stop, configure, and manage Windows services with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible win_service Module.
Ansible win_share Module — Manage Windows File Shares
Create and manage Windows SMB/CIFS network file shares with Ansible. Follow clear, copy-paste examples and real-world usage notes for Ansible win_share Module.
Ansible win_template Module — Deploy Templates to Windows Hosts
Render Jinja2 templates and deploy to Windows remote hosts with Ansible. Hands-on, tested examples and best practices for Ansible win_template Module.
Ansible win_uri Module — Make HTTP Requests from Windows
Send HTTP/HTTPS requests from Windows hosts for API calls and downloads. Hands-on, tested examples and best practices for Ansible win_uri Module.
community.windows 3.3.0 Released - Whats New and How to Test
community.windows 3.3.0 adds win_psmodule_info filtering options and fixes win_scheduled_task SYSTEM become_user issue for Windows automation.
Want to practice these tutorials?
Try the AI Playground for interactive learning with instant feedback.