#6297 add a documentation note for windows 2016 images

This commit is contained in:
lmayorga 2018-07-31 15:09:41 -04:00
parent ccf404ea75
commit 5fff424ad5
1 changed files with 16 additions and 0 deletions

View File

@ -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. If you need to preserve those source volumes, you can overwrite the
termination setting by specifying `delete_on_termination=false` in the termination setting by specifying `delete_on_termination=false` in the
`launch_block_device_mappings` block for the device. `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"
]
}
```