How do I retrieve my Windows administrator password after launching an instance?
Last updated: 2020-09-24
I need to retrieve my Windows administrator password after launching an Amazon Elastic Compute Cloud (Amazon EC2) instance. How can I do that?
Resolution
You can retrieve your initial administrator password by using 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.
- If you lost your key pair, see How can I reset the administrator password on an EC2 Windows instance?
- If you need an Amazon EC2 key pair, see Create a key pair using Amazon EC2.
Follow these steps:
- Open the Amazon EC2 console, and then choose Instances.
- Select the instance, choose Actions, and then choose Get Windows Password.
Note: It can take a few minutes for this option to be available after you first launch a new instance.
- Choose Browse, select your key pair file, and then choose Open.
-or-
Paste the contents of your key pair into the text box.
- 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.
Related information
Did this article help?
Do you need billing or technical support?