Wednesday, September 30, 2020

Unable to Retrieve Default Windows Administrator Password in AWS EC2

 Error: 

Password not available yet. Please wait at least 4 minutes after launching an instance before trying to retrieve the auto-generated password.

Note: Passwords are generated during the launch of Amazon Windows AMIs or custom AMIs that have been configured to enable this feature. Instances launched from a custom AMI without this feature enabled use the username and password of the AMI’s parent instance

 

Solutions:

The below steps are worked for me. 

1.Connect to your Windows instance and customize it. 

2.Search for and run the EC2LaunchSettings application if the windows is 2016
or later or if the windows server 2012 R2 and earlier version of Windows server 2012R2 open EC2Config service application.

3.Enable Random(Retrieve from console) 

4.Click Shutdown the system with Sysprep option.

5.Create AMI once instance got shutdown. 

6. Then launch the system using new Keypair.