I want to capture and install custom Windows AMIs that can be reused using Sysprep. How can I do this? 

Sysprep is a Microsoft tool that is used to capture custom Windows custom images. Sysprep removes unique information from the Windows instance including the instance security identifiers (SID), computer name, and drivers. This is useful because duplicate SIDs may cause issues with Windows Server Update Services (WSUS), log-in issues, Windows volume key activation, Windows Office, and third party products. 

Run Sysprep with EC2 Config Service or EC2 Launch.

Consider the following before running Sysprep:

  • Do not use Sysprep to create a backup for your instance.
  • Sysprep is not supported on Windows Server 2016 Nano Server.
  • Run EC2Config For Windows Server 2008 or Windows Server 2012.
  • Use RunSysprep With EC2Launch For Windows Server 2016.

Follow these instructions to Create a Standard Amazon Machine Image Using Sysprep.

Or

Follow this tutorial.

Run Sysprep with EC2Config for Windows Server 2008 or Windows Server 2012

For more information, see Using Sysprep with the EC2Config Service.

1. Open the Amazon EC2 console, and then connect to the Windows EC2 instance using Remote Desktop Protocol (RDP).

Note: To create a standard custom image, follow the instructions to Create a Windows AMI and take note of the AMI ID.

2. Open Ec2Config, in EC2 Services Properties choose the Image tab, in Administrator Password choose Random, and then choose Shutdown with Sysprep.

3. In the Sysprep Confirmation dialog box, choose Yes, and then in EC2 Services Properties choose Apply.

Note: You must retrieve the new password from the EC2 console at the next service start.

4. Wait for the instance to stop, and then restart the instance.

RunSysprep with EC2Launch for Windows Server 2016

For more information, see Run Sysprep with the EC2Config Service.

1. Open the Amazon EC2 console, and then connect to the Windows EC2 instance using Remote Desktop Protocol (RDP).

Note: To create a standard custom image, follow the instructions to Create a Windows AMI and take note of the AMI ID.

2. Open EC2Launch, in EC2 Launch Settings, in Administrator Password choose Random, and then choose Shutdown with Sysprep.

Note: You must retrieve the new password from the EC2 console at the next service start.

3. In the Sysprep Confirmation dialog box, choose Yes, and then in EC2Launch Settings choose Apply.

If you experience error message or issues using Sysprep, see Troubleshooting Sysprep with EC2Config.

You can also use EC2Rescue for Windows Server to collect log files and troubleshoot issues.


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center

Published: 2018-09-04