- Newest
- Most votes
- Most comments
Hello,
As you may know EC2 instances launched from custom AMIs take the Administrator password from the source instance. If the default password for the Administrator account was changed in the source instance used to create the AMI, then the new instance takes the same password. Decrypting the password using a key pair file isn't possible, unless you configure EC2Launch or EC2Config to generate a new password on the next instance boot.
However, it should not be a problem if the AMI was sysprep’d before creation like you said, and initialization tasks from EC2Launch was configured to enable auto-generated passwords.
Following the below docs might help you to connect the EC2 instance with reset password, [1] - https://repost.aws/knowledge-center/reset-admin-password
[2] - https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ResettingAdminPassword.html
[3] - https://repost.aws/knowledge-center/ec2-windows-password-not-available-error
Thanks for the help and guidance. Being new to AMI and recreating instances from them, I knew that I would have to go through the learning curve. My research too directed me towards the EC2Rescue and Run Command. Eventually, things got moving.
Relevant content
- asked 3 years ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
https://repost.aws/knowledge-center/ec2-windows-password-not-available-error did you try this already?