hashicorp avatar

Windows Builder

Packer template guide for building Windows images on AWS, Azure, and VMware with WinRM.

CCM score
71 of 100
skills.sh installs
2.9K
GitHub stars
941
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers WinRM communicator setup, PowerShell provisioners for software installs, Windows Updates, and cleanup
  • Includes AWS and Azure source examples, a setup-winrm.ps1 user-data script, and troubleshooting for WinRM timeouts and execution policy
  • Notes that builds take 45 to 120 minutes and may leave resources running if they fail, so cleanup must be verified
  • Designed for teams producing Windows AMIs, Azure managed images, or VMware templates with HashiCorp Packer

Install

$ npx -y skills add hashicorp/agent-skills --skill windows-builder -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Windows Builder

Platform-agnostic patterns for building Windows images with Packer.

Reference: WinRM Communicator

Note: Windows builds incur significant costs and time. Expect 45-120 minutes per build due to Windows Updates. Failed builds may leave resources running - always verify cleanup.

WinRM Communicator Setup

Windows requires WinRM for Packer communication.

AWS Example

source "amazon-ebs" "windows" {
  region        = "us-west-2"
  instance_type = "t3.medium"

  source_ami_filter {
    filters = {
      name = "Windows_Server-2022-English-Full-Base-*"
    }
    most_recent = true
    owners      = ["amazon"]
  }

  ami_name = "windows-server-2022-${local.timestamp}"

  communicator   = "winrm"
  winrm_username = "Administrator"
  winrm_use_ssl  = true
  winrm_insecure = true
  winrm_timeout  = "15m"

  user_data_file = "scripts/setup-winrm.ps1"
}

WinRM Setup Script (scripts/setup-winrm.ps1)

Details

Repository
github.com/hashicorp/agent-skills
Category
DevOps & Cloud
First seen
May 16, 2026

More from hashicorp/agent-skills

All 16

Similar to Windows Builder

More DevOps & Cloud