I launched an Amazon Elastic Compute Cloud (Amazon EC2) instance, and now I need to retrieve my Windows administrator password.
Retrieve your initial administrator password with the Amazon EC2 console or the AWS Command Line Interface (AWS CLI).
Retrieve your initial administrator password using the Amazon EC2 console
Note: This method requires an Amazon EC2 key pair.
Follow these steps:
1. Open the Amazon EC2 console, and then choose Instances.
2. Select the check box for the instance, and then expand the Actions dropdown list. For the old console, choose Get Windows Password. For the new console, choose Security, and then choose Get Windows Password.
Note: When you first launch a new instance, this option might not be available for a few minutes.
3. Choose Browse, select your key pair file, and then choose Open.
Paste the contents of your key pair into the text box.
4. Choose Decrypt Password.
Retrieve your initial administrator password using the AWS CLI
Note: If you receive errors when running AWS CLI commands, make sure that you're using the most recent version of the AWS CLI.
Use the get-password-data command. For example syntax, see Examples.
Getting started with Amazon EC2 Windows instances
Connect to your Windows instance