From 5fff424ad5fabc82f6fa6502d9613086ba7d5bb0 Mon Sep 17 00:00:00 2001 From: lmayorga Date: Tue, 31 Jul 2018 15:09:41 -0400 Subject: [PATCH] #6297 add a documentation note for windows 2016 images --- website/source/docs/builders/amazon-ebs.html.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/website/source/docs/builders/amazon-ebs.html.md b/website/source/docs/builders/amazon-ebs.html.md index 6b48621b4..065fe8bf0 100644 --- a/website/source/docs/builders/amazon-ebs.html.md +++ b/website/source/docs/builders/amazon-ebs.html.md @@ -480,3 +480,19 @@ up all residual volumes that are not designated by the user to remain after termination. If you need to preserve those source volumes, you can overwrite the termination setting by specifying `delete_on_termination=false` in the `launch_block_device_mappings` block for the device. + +## Windows 2016 Sysprep Commands + +For Windows 2016 Images it is necessary to run Sysprep commands which can be easily added +to the provisioner section. + +```json +{ + "type": "powershell", + "inline": [ + "C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/InitializeInstance.ps1 -Schedule", + "C:/ProgramData/Amazon/EC2-Windows/Launch/Scripts/SysprepInstance.ps1 -NoShutdown" + ] + +} +```