Skip to content

Commit

Permalink
Switch to EC2Launch v2 for Sysprem - Windows 2022 support
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronJackson committed Nov 29, 2023
1 parent 43a546f commit af48321
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/windows.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,9 @@ build {

provisioner "powershell" {
inline = [
# Re-initialise the AWS instance on startup
"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Scripts\\InitializeInstance.ps1 -Schedule",
# Remove system specific information from this image
"C:\\ProgramData\\Amazon\\EC2-Windows\\Launch\\Scripts\\SysprepInstance.ps1 -NoShutdown"
"& 'C:/Program Files/Amazon/EC2Launch/EC2Launch.exe' reset --block",
"& 'C:/Program Files/Amazon/EC2Launch/EC2Launch.exe' sysprep --block"
]
}

Expand Down

0 comments on commit af48321

Please sign in to comment.